aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Want to start Norwegian translation - need help  (Read 15419 times)

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Want to start Norwegian translation - need help
« on: August 21, 2007, 12:03:58 PM »

Hello,

I want to start a new Norwegian translation of aMule. Having already made one for eMule, it will get done swiftly. However, I have a couple of questions: I have downloaded and installed gTranslator, and according to the wiki I need to download and edit a file called source_strings.po. However, the link in the wiki is dead and I can`t find it anywhere in the forum.  Not even here: http://forum.amule.org/index.php?topic=1097.0

I am at a loss. Where is the file?


Hallvor
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #1 on: August 22, 2007, 10:31:15 AM »

Hi Hallvor,

the source file is called amule.pot and can be found in the daily tarball @ amule.hirnriss.net.

I don't know about gTranslator (or translations in general), but you can create po-files using msginit --locale=nb --input=name.pot

I've created two example files for Norwegian Bokmaal and Norwegian Nynorsk, which you can use with any translation program like kBabel.
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #2 on: August 22, 2007, 09:09:49 PM »

Thank you, wuischke. You are too kind.

Should have mentioned that I only need the nynorsk file.  Anyway, I have started translating and will post the file here once done.
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #3 on: August 28, 2007, 09:11:30 PM »

33% remaining....  ::) Hope I`ll make it in time for 2.2.0
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #4 on: August 30, 2007, 10:06:38 PM »

I`ll post the finished file tomorrow night. Is there any way to test it without trying to compile the CVS-version of aMule? I can`t make it work.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #5 on: August 31, 2007, 12:14:53 PM »

Don't you worry, as long as the translations are alright, I'll fix any syntax errors.

Testing: msgfmt -c --statistics nn.po should do the job on a machine with gettext installed.
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #6 on: August 31, 2007, 09:16:11 PM »

Hello!

Have finished the translation now. The output gave me this info. I`m afraid this doesn`t say me anything as I`m pretty new to linux in general.

hallvor@hallvor-desktop:~$ msgfmt -c --statistics nn.po
nn.po:1966:59: invalid control sequence
nn.po:1960: `msgid' and `msgstr' entries do not both end with '\n'
nn.po:3169: number of format specifications in 'msgid' and 'msgstr' does not mat ch
nn.po:4027: format specifications in 'msgid' and 'msgstr' for argument 1 are not  the same
nn.po:4078: format specifications in 'msgid' and 'msgstr' for argument 1 are not  the same
nn.po:6228: `msgid' and `msgstr' entries do not both begin with '\n'
nn.po:6302:59: invalid control sequence
msgfmt: found 7 fatal errors

The finished file is attached... :)
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #7 on: September 01, 2007, 11:12:29 AM »

Hi,

Thanks for the translation, I've included it in aMule.

I've fixed all the little problems (.e.g \m instead of \n, nothing serious), but there's one thing I cannot solve myself.

Does this make sense in Norwegian?
Quote
"Found corrupted part (%d) in %d parts file %s - FileResultHash |%s| FileHash "
"|%s|"
msgstr ""
"Fann korrupt del (%d) i %d delfila %s - Filresultathash |%s| Filhash "
"|%s|"
You forgot one '%d' (which is a decimal number) in your translation. I put it in front of "delfila", is this correct?
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #8 on: September 01, 2007, 12:40:00 PM »

Hi,

it looks correct.

Thanks.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #9 on: September 01, 2007, 06:17:59 PM »

Hi Hallvor,

I just saw at the status page, that there's one translation missing, it must have been added after I gave you the source string.
Could you please download the string file (click on the language name in the status page) and translate the missing string?
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #10 on: September 01, 2007, 10:12:46 PM »

Hi,

there you go!
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #11 on: September 28, 2007, 09:42:36 PM »

Noticed that a few lines had been added, and also fixed a couple of errors in the old file.

« Last Edit: September 28, 2007, 09:43:23 PM by wuischke »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #12 on: September 28, 2007, 09:56:47 PM »

Thank you, I've updated the translation.
Logged

Hallvor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 26
Re: Want to start Norwegian translation - need help
« Reply #13 on: November 30, 2007, 06:19:40 PM »

New strings translated.

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4319
Re: Want to start Norwegian translation - need help
« Reply #14 on: March 26, 2008, 11:32:32 PM »

Cra...I'm sorry, I completely overlooked your translation update.

Well, I've committed it now, I hope you excuse my mistake. :(
Logged
Pages: [1] 2