ElkArte Community

Extending Elk => Localization => Topic started by: forumsearch0r on May 24, 2014, 11:24:13 pm

Title: Why all the recent language restructuring?
Post by: forumsearch0r on May 24, 2014, 11:24:13 pm
Why do you do that? :<
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 25, 2014, 10:01:46 am
ehh...

/me blames @Spuds for all the bugs he is finding. :P

Most of them were just small tweaks (for example the colons moved to the string instead of the template), yeah, annoying... :(
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 25, 2014, 11:43:10 am
Repeatedly breaking git.  :-\
Title: Re: Why all the recent language restructuring?
Post by: Spuds on May 25, 2014, 04:40:33 pm
Just wait till I really start looking :P ... OK I'm really just making them bugs so I can make some of the addon's easier to code :D

Repeatedly breaking git.  :-\
Not sure what that means, for me I have not had a repo issue in a long time (probably jinked myself now)
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on May 26, 2014, 09:40:26 am
Sure, it can be my fault. :) Just found some HEAD marks in some language files, caused by too many changes.

At least I finished the German translation now (you can pull it, it's complete, except the occasionally needed updates).
(I hope I haven't missed a string.)
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 26, 2014, 02:30:32 pm
At least I finished the German translation now (you can pull it, it's complete, except the occasionally needed updates).
(I hope I haven't missed a string.)
Great!
I'll push that to transifex as soon as I get a moment, so we can easily see if there is anything missing. ;)
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on May 26, 2014, 02:35:27 pm
Now I'm afraid...
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 26, 2014, 02:42:36 pm
Unfortunately I can't write bug that way... :(
Title: Re: Why all the recent language restructuring?
Post by: TE on May 26, 2014, 02:58:17 pm
I'll push that to transifex as soon as I get a moment, so we can easily see if there is anything missing. ;)
If you do that: please push it to the "German (Germany)" tree..
The "German" tree contains my (and Jorin's) "informal" version, the one from forumsearchor2 is a formal one..
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 26, 2014, 03:08:09 pm
Okay.
Of course, if you want to take care of it feel free! ;D
/me always tries to delegate. :P
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 26, 2014, 06:23:50 pm
The "German" tree contains my (and Jorin's) "informal" version

Based on mine, I hope. Just to not have done too much.  :o
Title: Re: Why all the recent language restructuring?
Post by: TE on May 26, 2014, 09:04:58 pm
Based on mine, I hope. Just to not have done too much.  :o
Nope, they're based on the informal version for SMF 2.0 from smfportal.de. So it's basically the old SMF language pack with just the new ElkArte strings..that's one of those big benefits using transifex.
 https://www.transifex.com/projects/p/elkarte/
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 26, 2014, 09:08:14 pm
What the ... (word censorship?!). Then why did I actually do a complete translation on my own?

OTOH, it's really "original work" now. Mine is better!
Title: Re: Why all the recent language restructuring?
Post by: Spuds on May 27, 2014, 04:12:05 am
And you also helped improve the English language version as well :D
Title: Re: Why all the recent language restructuring?
Post by: TE on May 27, 2014, 06:47:14 am
What the ... (word censorship?!). Then why did I actually do a complete translation on my own?
Don't know that, you could have read the "transifex for translations" topic for example... Keep in mind: Jorin offered their help but you decided to start the translation without contacting me or him....
http://www.elkarte.net/community/index.php?topic=726.msg5146#msg5146
Quote
3) We still haven't decided how to handle translations.Most likely we'll have a seperate Tool for translation or we'll pull them in another repo (elkarte_languages). the main repo should not contain all translations,
Not sure why you ignored my comment  ::) ... I still think GIT (especially the main ElkArte repo) isn't the proper tool for translations.

OTOH, it's really "original work" now. Mine is better!
Your's is a bit special here and there (e.g. Befugnisse vs. Berechtigungen for "permissions") but TBH, I'm not up for the "mine is better" comparison.. They're different, that's it. One can decide which one they like..
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on May 27, 2014, 10:36:19 am
Don't know that, you could have read the "transifex for translations" topic for example... Keep in mind: Jorin offered their help but you decided to start the translation without contacting me or him....

TBH, I'd probably rework all existing translations anyway. I like a higher-class wording some time. :) - The advantage of git translations is that I can make string changes in the code itself while allowing you to see how they relate to my translations.
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 27, 2014, 01:22:27 pm
I love git and I would love to find an "easy" way to use it for translations... actually, now that each language has its own directory, it may be possible to use sub-modules to achieve that.

Okay, bit of explanation: sub-modules are just "repositories inside another repository".
Let me try to use an example.
This is the current ElkArte repository:
Code: [Select]
/elkarte
   |- sources
   |- themes
         |- default
               |- css
               |- scripts
               |- languages
                     |- english
   |- Packages
etc.
One big repository where everything is tracked at once.

With sub-modules, it would be:
Code: [Select]
repo 1:
/elkarte
   |- sources
   |- themes
         |- default
               |- css
               |- scripts
               |- languages
                     |- link-to-Elk-english
   |- Packages
etc.

repo 2:
/Elk-english
   |- all the language files
So, two different repositories where the English dir in the "main" elkarte repo is just a "link" to another repo (actually is a bit more complex than this, but let's summarize it like that).
From a development point of view the difference would be that we'd have to deal with two separated repositories, so adding a new language string would mean: a commit to the elk-repo where the string is used, and a commit to the elk-english repo where the string is stored.

That's a possibility.
If you are curious I can set up a demo repo to see how it could work.
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on May 27, 2014, 01:24:20 pm
Wouldn't it be possible to just set the /languages folder as an external repository?
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 27, 2014, 01:58:32 pm
Did I say english? Okay, well, you know... O:-)
Yep, languages. lol
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on May 27, 2014, 02:19:46 pm
Nah, the whole languages directory.
Title: Re: Why all the recent language restructuring?
Post by: TE on May 31, 2014, 02:32:27 pm
ok, uploaded @forumsearch0r s translation to transifex.
https://www.transifex.com/organization/elkarte/dashboard/all_resources/de_DE/
due to the recent changes there are still some untranslated strings..

Definitely a reason to finally "freeze" language changes for 1.0 ..
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 31, 2014, 06:17:21 pm
It's about time for that. Every time I submit an update, it's already deprecated.
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 31, 2014, 06:20:01 pm
Quote
Looks like you followed a bad link.

OK, I'll continue on git...
Title: Re: Why all the recent language restructuring?
Post by: phantom on May 31, 2014, 06:23:35 pm
Why all lang files - Polish, Italian etc. have *.english.php at the end?
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on May 31, 2014, 06:43:41 pm
German lang files don't.
Title: Re: Why all the recent language restructuring?
Post by: emanuele on May 31, 2014, 07:03:49 pm
Why all lang files - Polish, Italian etc. have *.english.php at the end?
If I got it right, it's a limitation of transifex: the files are generated with the same name, though it's possible to download the with their client in the proper format (see TE's topic (http://www.elkarte.net/community/index.php?topic=1459.0)).
Once the a translation is "ready" it can be downloaded and distributed[1].
Not sure how at the moment... TBH I would avoid to regenerate each and every lang package for each minor release (or even only have to upload them at github), maybe we should find another way... worth a topic.
Title: Re: Why all the recent language restructuring?
Post by: TE on June 01, 2014, 09:43:49 am
Why all lang files - Polish, Italian etc. have *.english.php at the end?
It's due to the original name..
You can use the transifex client (as @emanuele45 mentioned) for download.. Then you'll get a prober folder structure + the correct names..

I'll setup the server with the transifex client, soon.. then we'll have a nightly build of our languages files, just a little bit patience please..
Title: Re: Why all the recent language restructuring?
Post by: emanuele on June 01, 2014, 10:02:38 am
I'll setup the server with the transifex client, soon.. then we'll have a nightly build of our languages files, just a little bit patience please..
Ohhh that's cool! :D
Title: Re: Why all the recent language restructuring?
Post by: phantom on June 01, 2014, 03:47:57 pm
Downloaded this client for Windows, but it seems that I need to type something in cmd... It's not for me. I'm going to wait for server ::)
Title: Re: Why all the recent language restructuring?
Post by: TE on June 02, 2014, 07:49:49 am
Here we are:
http://translations.elkarte.net/
Title: Re: Why all the recent language restructuring?
Post by: emanuele on June 02, 2014, 09:28:57 am
WOW! :D
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on June 02, 2014, 10:03:12 am
I love how you use the term of "building" for packing php files. :D
Title: Re: Why all the recent language restructuring?
Post by: TE on June 02, 2014, 10:34:24 am
I love how you use the term of "building" for packing php files. :D
;D
yeah, it's not a true build, just a simple
Code: [Select]
tx pull
+ zip based on a cron Job.
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on June 02, 2014, 10:39:28 am
So where should I commit future translations?
Title: Re: Why all the recent language restructuring?
Post by: TE on June 02, 2014, 11:06:12 am
I'd personally favour transifex..  I've uploaded your translations to the German (Germany) language section, the related nighlty created ZIP is german-formal.zip.
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on June 02, 2014, 11:11:22 am
The Transifex link above didn't work.
Title: Re: Why all the recent language restructuring?
Post by: TE on June 02, 2014, 11:21:05 am
Does this one work for you?
https://www.transifex.com/organization/elkarte/dashboard
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r2 on June 02, 2014, 03:26:56 pm
"Es scheint, dass Sie einem fehlerhaften Link gefolgt sind."
Title: Re: Why all the recent language restructuring?
Post by: TE on June 02, 2014, 03:30:58 pm
https://www.transifex.com - Oben im Menü "Explore", dann ElkArte als Suchbegriff..funktioniert das?
 hab es an diversen Rechnern ohne Probleme aufrufen können. Sitzt du hinter einem Proxy, der das möglicherweise filtert? (z.B. TOR)
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on June 02, 2014, 08:53:32 pm
Eigentlich nicht.

Hm, über diesen Umweg kann ich es aufrufen. Und wie arbeite ich damit? Dann würd' ich dort fortsetzen (und hoffe, ihr habt die aktuellste Version schon übernommen).

(n.b.: vom 3. bis 9. nur bedingt online - Urlaub)
Title: Re: Why all the recent language restructuring?
Post by: Spuds on June 03, 2014, 01:49:30 am
Looks like the word censor has gone nuts  :P
Title: Re: Why all the recent language restructuring?
Post by: TE on June 03, 2014, 11:26:06 am
Und wie arbeite ich damit? Dann würd' ich dort fortsetzen (und hoffe, ihr habt die aktuellste Version schon übernommen).
please check this one, it's a small german "guide" for using transifex (the web gui):
http://www.elkarte.de/community/index.php/topic,13.msg22.html#msg22
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on June 09, 2014, 04:48:03 pm
git is easier.  :-\
Guess I'll stay with it.
Title: Re: Why all the recent language restructuring?
Post by: TE on June 10, 2014, 09:11:06 pm
git is easier.  :-\
Uhh what?  "tx push" and "git push" is allmost the same, just the params are different..
http://support.transifex.com/customer/portal/articles/996211-pushing-new-translations
Title: Re: Why all the recent language restructuring?
Post by: forumsearch0r on June 10, 2014, 09:14:17 pm
But I can't access the code in tx!