Skip to main content
Recent Posts
5
Localization / 2.0 Language Files on Transifex
Last post by Spuds -
This ended up being a bit of a chore.  The upload is of-course easy, its standard push/pull commands.  The chore was that we changed the way lanaguage files are named and where they are storred in 2.0

In 1.1 it was /themes/languages/admin.lang1.php ... admin.langx.php
In 2.0 it is /sources/ElkArte/Languages/Admin/lang1.php ... langx.php

Renaming is not a big deal, but we had new strings, new area/files, changed strings, removed strings.  So I wrote a little best guess program that compared each area, like Admin 2.0 to 1.1. 
  • If the string key existed in both and the values were they the same use it,
  • If the string was missing drop it
  • If the string was only different by capitalization/punctuation, use as is,
  • If it they were close based on a levenshtein_ratio use as is, otherwise drop it as untranslated.
  • If the translated string is just English strings, drop them. 

So what is now in Transifex under ElkArte-2.0 is cleaner than what we have had before and the % translated is more accurate.

Also for fun, I wrote a small program that pulls untranslated strings from Transifex, runs them through an OpenAI model and stuffs them back into Transifex.  You specify the area, like Admin, the language like German/de and the program does the rest.  Of course those models are not free to run so I did it as an experiment ... and it works!

Still have to write the program that pulls the language files from Transifex and creates the packages.
6
Site Feedback / Re: EARLY Beta version of 2.0
Last post by Spuds -
Made some good progress over the last few days.

I do have install working correctly, the only tweaks were getting the base settings to something more appropriate.

The upgrade was a different story, but I have it working to the point I can finally check on some refinements.  The delay was really in updating the update.php script so it worked with 2.0, plus there was so much old cruft in that file.  Anyway it now will upgrade a 1.1 db to a 2.0 version. 

If upgrading there is still manual work that needs to be done, copying attachments and avatars over but the script is not going to do that for you, the overall directory structure is just too different.  I'll jot down the easy path to upgrade but that will not be the only way, nor will the upgrade to anything other than update the db.

SO closer we inch !
8
Site Feedback / Re: EARLY Beta version of 2.0
Last post by Spuds -
Got sidetracked updating SimplePortal so it was 2.0 compatible  Thought I was all done but found a couple of:bug:that needed fixing.  I'm sure there are more but that is always the case.  I did add a new goodie feature to the portal:partying_face:

OK now back to getting this release done!!:construction_worker: