bugLordsAWar! - Bugs: bug #24521, Translations

 
 

bug #24521: Translations

Submitted by:  None
Submitted on:  Fri 10 Oct 2008 04:55:07 PM UTC  
 
Category: translationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 18 Apr 2011 09:41:24 PM UTC, comment #38:

I have downloaded from subversion and it works!

Thanks!

Àngel Mompó <mecatxis>
Sat 16 Apr 2011 06:47:05 PM UTC, comment #37:

I have made the changes in subversion revision 2653.

To try this out yourself without having to use subversion, make the following local changes:

On line 55 of src/editor/main.cpp, add these two lines:
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
and then change the following line from:
textdomain (GETTEXT_PACKAGE);
to:
textdomain ("lordsawar");

Recompile, and then try running lordsawar-editor. This won't fix the other 4 editor programs; it only fixes the scenario editor.

Ben Asselstine <benasselstine>
Project Administrator
Sat 16 Apr 2011 06:32:15 PM UTC, comment #36:

Not today. Maybe not tomorrow. Could be on monday.

Is a question of time

Or if you tell me witch file should i change, I am not a developer, but I am able to change some few lines of code.

Àngel Mompó <mecatxis>
Sat 16 Apr 2011 05:23:30 PM UTC, comment #35:

None? Yikes.

Well maybe the difference is in how gettext is initialized.
in the game i do:
setlocale(LC_ALL, Configuration::s_lang.c_str());
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
but in the editor(s) i do:
setlocale(LC_ALL, Configuration::s_lang.c_str());
textdomain ("lordsawar");

If I make the change in subversion, can you try it?

Ben Asselstine <benasselstine>
Project Administrator
Sat 16 Apr 2011 05:17:06 PM UTC, comment #34:

No words appears translated, but they in the po file.

Maybe i should do anything special while compiling...

Àngel Mompó <mecatxis>
Sat 16 Apr 2011 04:00:13 PM UTC, comment #33:

Well it's hard for me to answer because I don't use translations. Perhaps another translator can say if their translations are working in the editors?

What words aren't getting translated?

Ben Asselstine <benasselstine>
Project Administrator
Sat 16 Apr 2011 03:15:06 PM UTC, comment #32:

Are the translations for the editors working?

I have translated some words and they not appear translated.

Àngel Mompó <mecatxis>
Fri 15 Apr 2011 07:52:18 AM UTC, comment #31:

Thanks Ben

The problem was that the po file was not updated.

Usualy, in other translation project projects i have worked, the po files are updated automatically and i simply translate it as it comes from the server.

I merged it with the pot file, tested and it works fine now.

Àngel Mompó <mecatxis>
Sun 10 Apr 2011 07:50:57 PM UTC, comment #30:

Thanks for following up.

3+4. I can see that "Start a headless server" appears in the .pot file at http://translationproject.org/POT-files/lordsawar-0.2.0-pre4.pot So I'm guessing it's a character set problem. What happens if you enter the wrong translation, but with text you know works elsewhere? Are you using UTF-8?

Ben Asselstine <benasselstine>
Project Administrator
Sun 10 Apr 2011 07:00:18 PM UTC, comment #29:

1+2 I'm translating lordsawar0.2.1 version from catalan group in translation project.

3 The other buttons, like "New Game" appears translated to me.

4 The completely translated help says:

Opcions:

-h, --help Mostra aquesta pantalla d'ajuda
-c, --cache-size <size> Estableix la memòria cau per imatges a SIZE bytes
-t, --test Comença amb un escenari de proves
-S, --seed <number> Posa al generador d'aleatoris a NUMBER
-s, --stress-test Prova d'estrès no interactiva
-r, --robots Prova d'estrès de la xarxa no interactiva
-H, --host Start a headless server
-p, --port <number> Start the server on the given port

The latest two sentences look strange to me if others are translate, don't you? :D

Thanks to you all!

Àngel Mompó <mecatxis>
Sat 09 Apr 2011 06:13:22 PM UTC, comment #28:

First of all, thanks for translating!

1. What version are you trying to compile?

2. Are you doing this through the translationproject.org?

3. "New Play By Mail Game" comes from splash-window.ui. Does "New Game" appear translated to you? I'm wondering if any text from .ui files appears translated for you. I haven't heard of this problem from any of the other translators.

4. I thought the convention was to not translate long options, like --port and --host. Perhaps a compromise is to translate the arguments to options.

Ben Asselstine <benasselstine>
Project Administrator
Sat 09 Apr 2011 05:44:26 PM UTC, comment #27:

I'm translating to catalan and I have a major issue. Some of the sentences simply does not appear translated when I compile.

As an example:
in the main menu "New Play By Mail game" -> "Nova partida per c/e"
or the "Select" button -> "_Selecciona"

Both appears in english.

In help the --host and --port cannot be translated (there are no sentences in the po file.

Àngel Mompó <mecatxis>
Tue 01 Mar 2011 09:39:49 PM UTC, comment #26:

Well, then I'll wait until you upload the new pot to http://translationproject.org/. I thought you might have forgotten to upload the file as you are working very hard on fixing the bugs at the moment.

Martin Thoma <moose>
Project Member
Tue 01 Mar 2011 09:36:03 PM UTC, comment #25:

It's still changing every day.

Feel free to grab an unofficial 0.2.0-pre1 pot file from :

http://download-mirror.savannah.gnu.org/releases/lordsawar/lordsawar-0.2.0-pre1.tar.gz

Watch out though... that file will be replaced with another 0.2.0-pre1. And when that happens I'll send the new pot file to the translation project.

When will that happen? Well I want to finish off the components I'm currently working on, so it might take a week.

Ben Asselstine <benasselstine>
Project Administrator
Tue 01 Mar 2011 08:26:37 PM UTC, comment #24:

Hi Ben,

could you please upload the new .pot-file for LordsAWar! Version 0.2.0-pre1?

cheers,
Martin

Martin Thoma <moose>
Project Member
Mon 14 Feb 2011 11:27:09 PM UTC, comment #23:

The German translation has been committed into the latest sources.

Ben Asselstine <benasselstine>
Project Administrator
Mon 14 Feb 2011 11:23:38 PM UTC, comment #22:

Thanks for the German Translation! You don't have to upload it here to notify me... the robot from the translation project does that just fine.

Ben Asselstine <benasselstine>
Project Administrator
Mon 01 Dec 2008 05:44:44 PM UTC, comment #21:

No, I'm busy at the moment. So far I translated the "game" strings in lordsawar.pot, not the "editor" ones. There is still space for optimizations in the translations ;) However, it's an improvement.
The diff makes no sense, so here's the full de.po.

Tobias

(file #16961)

-Deleted Account- <tobis>
Sat 29 Nov 2008 07:32:58 PM UTC, comment #20:

Ping, are you still working on a translation?

Ben Asselstine <benasselstine>
Project Administrator
Sun 26 Oct 2008 11:57:59 AM UTC, comment #19:

Applied

Ben Asselstine <benasselstine>
Project Administrator
Sun 26 Oct 2008 09:17:48 AM UTC, comment #18:

More translation framework improvements.

(file #16735)

-Deleted Account- <tobis>
Sat 25 Oct 2008 04:06:22 PM UTC, comment #17:

appled to svn. Thanks!

Ben Asselstine <benasselstine>
Project Administrator
Sat 25 Oct 2008 03:10:21 PM UTC, comment #16:

It's much more work than I expected. What I did beside translating:
- removed more debug code from translation
- fixed minor spelling things
Because available game translation (no editors yet) is nearly completed, I recognize thatd there are many untranslated strings. I will add some important ones to the translation soon.

(file #16734)

-Deleted Account- <tobis>
Tue 21 Oct 2008 02:23:13 PM UTC, comment #15:

applied.

making new bug for the genneration window being too small.

Ben Asselstine <benasselstine>
Project Administrator
Tue 21 Oct 2008 06:53:57 AM UTC, comment #14:

A little more code change to keep synced with trunk:
MapGenerator.cpp:
- mark debug output
- remove debug translations
- FIXME: GUI progress window too small, strings in progress.emit() not seen there
main.cpp:
- translation of --help and error output

(file #16716)

-Deleted Account- <tobis>
Sun 19 Oct 2008 11:45:14 AM UTC, comment #13:

I'd like to add your name to the ChangeLog as I apply this patch to the codebase. Do you mind giving me your name?

Ben Asselstine <benasselstine>
Project Administrator
Sun 19 Oct 2008 09:14:02 AM UTC, comment #12:

I started to translate. Here's a first diff file (no translations included yet). Still a long way to go...

My plan:
- Remove needless translations
- Add missing translations
- Testing, testing, testing
- Send de.po

(file #16700)

Anonymous
Sat 18 Oct 2008 10:24:31 AM UTC, comment #11:

Yes, it does. Thanks! I'm now going to figure out, how the environmental variables and the d_lang option work together. When I feel comfortable with that I'll hopefully make a German translation.

Anonymous
Fri 17 Oct 2008 11:01:35 PM UTC, comment #10:

Great. Does make install create the .mo files now?

Thanks!

Barry deFreese <bddebian>
Project Member
Fri 17 Oct 2008 09:27:14 PM UTC, comment #9:

Hell, you're right. Uncommenting the gettext and intltool lines from autogen.sh build the files. There were some instructions (aclocal,...) afterwards, but 'make' automatically complies with that.

Thanks!

Anonymous
Fri 17 Oct 2008 06:54:52 PM UTC, comment #8:

Just out of curiosity, after running make, do you have the .gmo files in po/ ? If not, would you mind uncommenting the gettext and intltool lines from autogen.sh and trying again?

Thanks!

Barry deFreese <bddebian>
Project Member
Fri 17 Oct 2008 05:44:00 PM UTC, comment #7:

I think it's broken. It's working with old stable 0.1.0 but not with the developmental 0.1.3.

Anonymous
Thu 16 Oct 2008 09:38:18 PM UTC, comment #6:

I'm using Debian testing and did exactly what you posted (and what I did before). I'm sorry, it's not working. The GNU tools work without any error, there are just no .mo produced :(

In Debian testing there are precompiled packages (0.1.0), they have this files. I feel stupid...

Anonymous
Thu 16 Oct 2008 06:45:32 AM UTC, comment #5:

Thank you! But that's what I'm actually doing. I'll try it again at the weekend.

Anonymous
Wed 15 Oct 2008 08:00:42 PM UTC, comment #4:

To properly create the .mo files, you need to build the software.

If you're on ubuntu 8.04 you can run the following commands to get the build dependencies:
$ sudo apt-get install automake autoconf libtool m4 autotools-dev g++ libsigc++-2.0-dev libglibmm-2.4-dev libgtkmm-2.4-dev gettext subversion libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libglademm-2.4-dev libgnet-dev libboost-dev uuid-dev intltool cvs

And then to build the software you:
$ svn co svn://lordsawar.com/lordsawar
$ cd lordsawar/lordsawar/trunk
$ autogen.sh
$ ./configure && make

Running `sudo make install' at this point will create files like: /usr/local/share/locale/${LINGUA}/LC_MESSAGES/lordsawar.mo .

I hope this helps, because I'd really like to see some nice translations!

Ben Asselstine <benasselstine>
Project Administrator
Wed 15 Oct 2008 07:27:57 PM UTC, comment #3:

I can make the translations "manually" run, but that is not satisfactory. How are the lordsawar.mo produced and copied properly? Does anybody know out there?

For me it's hard to handle with the automake/conf... files. That's because of missing experience and secondly I think there is much ballast in these files not needed (anymore).

Anonymous
Mon 13 Oct 2008 07:56:18 AM UTC, comment #2:

I investigated a little why it's not working. I assume that the translations are not installed or at least not properly. I compared to other programs and found locations like
${PREFIX}/share/locale/${LINGUA}/LC_MESSAGES/lordsawar.mo
where ${LINGUA}=de,fr,... These paths are defined in the configure scripts and used by specific gettext functions.

I'm not sure, when/if I can solve this.

Anonymous
Fri 10 Oct 2008 08:38:30 PM UTC, comment #1:

The translations have been in an unusable state for a long time. Now that the game is mostly written and not changing a lot, it makes sense for the translations to begin. A german translation would be greatly appreciated.

Try changing the <d_lang> line in the ~/.lordsawarrc file.

Ben Asselstine <benasselstine>
Project Administrator
Fri 10 Oct 2008 04:55:07 PM UTC, original submission:

I had look at the *.po files. I must say, the German one is crap ;)

Missing translations are ok, but completely wrong ones? As far I can see, it's not much different with the other languages. I'm a native German speaker and interested in translating the de.po, if you like.

Unfortunately I don't know how to start LordsAWar in other languages, the program falls back to "C", immediately when started (I used LC_ALL,... options and started the program from bash). Do you know how it works? I'm using en_US as default for my system.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #22688:  lordsawar-0.1.9-pre3.de.po added by moose (204kB - text/x-gettext-translation - I have translated over 50% today into German. I hope I can translate at least 75% tomorrow. See http://translationproject.org/domain/lordsawar.html I also added the po-file here, I don't want to lose it.)
file #16961:  de.po added by tobis (95kB - text/x-gettext-translation)
file #16735:  lang4.diff added by tobis (7kB - text/x-patch)
file #16734:  lang3.diff added by tobis (23kB - text/x-patch)
file #16716:  lang2.diff added by tobis (7kB - text/x-patch)
file #16700:  lang1.diff added by None (5kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mecatxis (Posted a comment)
  • -unavailable- added by moose (Updated the item)
  • -unavailable- added by tobis (Updated the item)
  • -unavailable- added by bddebian (Posted a comment)
  • -unavailable- added by benasselstine (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 10 Apr 2011 07:50:57 PM UTCbenasselstineCategoryNone=>translation
    Mon 14 Feb 2011 10:47:48 PM UTCmooseAttached File-=>Added lordsawar-0.1.9-pre3.de.po, #22688
    Mon 01 Dec 2008 05:44:44 PM UTCtobisAttached File-=>Added de.po, #16961
    Sun 26 Oct 2008 09:17:48 AM UTCtobisAttached File-=>Added lang4.diff, #16735
    Sat 25 Oct 2008 03:10:20 PM UTCtobisAttached File-=>Added lang3.diff, #16734
    Tue 21 Oct 2008 06:53:57 AM UTCtobisAttached File-=>Added lang2.diff, #16716
    Sun 19 Oct 2008 09:14:02 AM UTCNoneAttached File-=>Added lang1.diff, #16700

    Back to the top


    Powered by Savane 3.1-cleanup