Internationalization

More
27 Aug 2012 19:46 #1248 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization

FDR wrote: No it works! :blink:
Strange!
Everything seems equal: the line feeds, the encoding...

Mine is larger, but it did the same when it was only a few rows too.

Can you try pulling the latest code.
I did find one bug:
I forgot to switch back to English when writing the ini, so it would be written in your language, but read in English which caused issues. This might explain why it failed only on startup, since it only reads tx settings on reboot.

Please Log in or Create an account to join the conversation.

More
27 Aug 2012 19:53 #1249 by FDR
Replied by FDR on topic Internationalization
No, it does the same... :(

Please Log in or Create an account to join the conversation.

More
27 Aug 2012 20:01 #1250 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization

FDR wrote: No, it does the same... :(

Can you enter USB mode when it is in a broken state (after switching languages and powering down..hold 'Ent')
And check the tx.ini and model.ini to see if they are in English and/or look corrupt. You could also just send them to me and I could try them in the emulator

Please Log in or Create an account to join the conversation.

More
27 Aug 2012 20:26 #1251 by FDR
Replied by FDR on topic Internationalization
They look fine!
BTW after clearing the language row from the tx.ini it works again in english...
Attachments:

Please Log in or Create an account to join the conversation.

More
27 Aug 2012 21:04 #1252 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization

FDR wrote: They look fine!
BTW after clearing the language row from the tx.ini it works again in english...

I'll check it tonight and see if I can figure out what is up.

Please Log in or Create an account to join the conversation.

More
28 Aug 2012 03:19 #1253 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
The problem was a buffer overflow. I don't know why valgrind didn't catch it.

Anyhow, it is fixed now, and seems to work.

Please Log in or Create an account to join the conversation.

More
28 Aug 2012 04:40 #1254 by FDR
Replied by FDR on topic Internationalization
Yep, it works now...
Thanks!

Please Log in or Create an account to join the conversation.

More
28 Aug 2012 07:13 - 28 Aug 2012 07:15 #1255 by wuselfuzz
Replied by wuselfuzz on topic Internationalization

PhracturedBlue wrote: EDIT: the German file (even the one marked utf8) wasn't in proper UTF8 format. I converted it and now all the characters seem to show up ok. It'll still need some adjustment to be usable though.


Oops, true, I messed it up, sorry.

/edit: I really wouldn't run symbols for the mixer etc through the translate function, so model files are language independent.
Last edit: 28 Aug 2012 07:15 by wuselfuzz.

Please Log in or Create an account to join the conversation.

More
28 Aug 2012 12:42 - 28 Aug 2012 12:42 #1256 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization

wuselfuzz wrote: /edit: I really wouldn't run symbols for the mixer etc through the translate function, so model files are language independent.

Model files are language independent. The strings in the model file (and tx.ini) are always in English regardless of your language.
Last edit: 28 Aug 2012 12:42 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
28 Aug 2012 19:51 #1266 by FDR
Replied by FDR on topic Internationalization
Corrected a typo in the hungarian language file.
Pushed...

Please Log in or Create an account to join the conversation.

More
29 Aug 2012 08:05 #1281 by FDR
Replied by FDR on topic Internationalization

FDR wrote: Corrected a typo in the hungarian language file.
Pushed...

Wait with pulling, I've found some more. I will correct them at home...

Please Log in or Create an account to join the conversation.

More
29 Aug 2012 18:30 #1290 by FDR
Replied by FDR on topic Internationalization
OK, it's done, I pushed...

Please Log in or Create an account to join the conversation.

More
01 Sep 2012 23:11 - 02 Sep 2012 02:47 #1336 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
I'm automating the extraction of the strings so it can be easily regenerated. Do you have any issue with me alphabetizing them in the output?
It will make it much easier to detect when new strings are added. (I'll alphabetize the existing language files too). Then we can use 'diff' to find new strings that need translating.

Edit: I've committed updated language files that are sorted.
Strings that were previously translated but are no longer used will be prefixed with '<:' and '<'. Strings that are new and have not yet been translated are prefixed with '>:'

You can run 'make language' at any time to extract the latest strings and updatethe existing language files as necessary. I think it will work on Windows too.
Last edit: 02 Sep 2012 02:47 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 16:26 #1359 by FDR
Replied by FDR on topic Internationalization
A (may be too late) question:
Is it necessary, that the language files are numbered instead of "lang.hu" or "lang.hu.txt" or "hu.txt"?
It makes harder to identify the language files.
I would prefer the named method for the model files too, but I understand, that they must exist, because the FS cannot create files, so they cannot be created or renamed on the fly...
But the language diretory (and for the matter the templates too) could be read as a whole directory, since they are read only.

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 18:29 #1360 by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
there is no way to search for files in the code today (because of how I have petit_fat compiled) So yes, today it is necessary to use numbered files.
Someday I'll enable the full filesystem code support, but not before the 1st release.

Please Log in or Create an account to join the conversation.

More
04 Sep 2012 18:31 #1361 by FDR
Replied by FDR on topic Internationalization
Ah, that's a pity...

Please Log in or Create an account to join the conversation.

More
05 Sep 2012 13:57 #1362 by FDR
Replied by FDR on topic Internationalization
I saw that you've done it! :woohoo:
(I think the german version should be named lang.de, but Wuselfuzz can tell for sure...)

Now there is nothing prohibits you to make the templates the same! ;) :lol:

BTW, I pushed some changes to the lang.hu

Please Log in or Create an account to join the conversation.

More
06 Sep 2012 18:32 #1376 by FDR
Replied by FDR on topic Internationalization
Sorry, I still found typos in lang.hu :blush:
Pushed...

Please Log in or Create an account to join the conversation.

More
17 Sep 2012 20:40 - 17 Sep 2012 20:41 #1693 by wuselfuzz
Replied by wuselfuzz on topic Internationalization
Quick update to the german language file attached.
Attachments:
Last edit: 17 Sep 2012 20:41 by wuselfuzz.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum