Page 2 of 2

Re: Introducing ReactOS Translation Tool

Posted: Thu Aug 20, 2015 12:40 pm
by Saibamen
If update is only for english language - script will display PHP Notice like this:

Code: Select all

Notice: Undefined offset: 147 in D:\Adam\XAMPP\htdocs\ReactOS-Translation-Tool\diff.php on line 181

Re: Introducing ReactOS Translation Tool

Posted: Thu Aug 20, 2015 1:53 pm
by EmuandCo
OK. And right now it seems like it thinks all identical strings are untranslated, right?

Re: Introducing ReactOS Translation Tool

Posted: Thu Aug 20, 2015 3:06 pm
by Saibamen
Right now I commited this: https://github.com/Saibamen/ReactOS-Tra ... 0512e0a641

Now shows "Missing stuff in your language" instead of "Notice: Undefinied offset" and this missing stuff are +1 to stat counter.

@EmuandCo: No. There's Wine.spell from WINE (http://fgouget.free.fr/wine-po/ - Generic words/acronyms to ignore in all languages) and our ReactOS.spell.
If some string is equal to Wine or our .spell strings - it's skipped.

Can you check ReactOS.spell and modify this file if some strings are wrong? Just send me this file in PM.

Re: Introducing ReactOS Translation Tool

Posted: Fri Sep 04, 2015 2:31 pm
by Saibamen
v0.4
- Remember last language code in input form (cookies)
- Switch language code from POST to GET
- One form for encoding.php and diff.php
- Inform that all strings are skipped
- Add htmlspecialchars() function to show some missing strings eg. <Message> and <Logon date>
- Catch offset error and add +1 to $missing for missing stuff