1
DCrussader
Transifex Requirements for accepting files

for translations.

Such things, like
Quote:

2. good looking and easy to edit/copy/paste/'look for' part of code ( and not slower for PHP, still )
define'_MD_XFGB_CONFIRM_CODE''Confirm verification code' ) ;



Forget to be accepted or someone else to convert it to the normal way, which should be:
define('_MD_XFGB_CONFIRM_CODE','Confirm verification code');


Also modules like xcontent and benchmark, containing strings which are not supposed to be translated are not welcome too, if u want to see it translated - move them out in another file.

Modules written in past for XOOPS 2.0.18 by some great developers like Herve, Catzwolf, GiJoe - need a lot corrections:
1. Convert them to UTF-8
2. Remove the copyleft information from the headers (french on ISO looks very nice, like Herv?.
3. Check and remove any invalid spaces before making new additions to the language files. Do not add invalid spaces in new additions.

Global (in addition to rest):
1. Verify that all strings are in English (I know that some of u're not native English speakers, but please Spanish words or French in English/ folder are not accepted). If you don't know English at all, contact with one of the team leaders to make it available in normal English, instead of using Google or such automated services to provide English language files.
2. Avoid double posting, same strings in main.php and modinfo.php
2.1. Since XOOPS core files contains so much definitions already, why module developers simply not call them instead to write new one ?
3. When u release new version to a module, no matter from Beta to RC or from RC to Final, mention which files are changed (Language) if there are any changes.
4. When u get response for coding bug, syntax error - respond fast as possible, otherwise looks like the module is released and abandoned.
5. If you get translation submitted from user done with 3rd party program (eg. email, your local support forums), provide it for synchronization with Transifex Platform.
6. Avoid to use misleading terminology, lets take example with e-commerce solution such as osCommerce and it's thousand forks. You are using Weight for Position, and Weight by the default is using to point the user for weight of the package. There is no such thing as Weight for categorization or file sorting. Imagine how will look Category A in position Weight translated as Weight - stupid.

(more to come)....

2
irmtfan
Re: Transifex Requirements for accepting files
  • 2012/8/8 2:51

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Also UNIX LF instead of windows CR+LF
IMO the above is very important.
long discussion before but still is not a regulation.

edit:
also utf-8 files should save without BOM.


3
DCrussader
Re: Transifex Requirements for accepting files

Quote:

also utf-8 files should save without BOM.

That was important for the time of 2.0.xx of XOOPS with PHP 4 and MySQL 3, the ready production from TX is in UTF-8 and there is no problem with any XOOPS.

No long or short discussion, they're disallowed, anarchy can be allowed and supported here, but not on TX, if the module developer wants his module in many languages will follow the rules.

4
irmtfan
Re: Transifex Requirements for accepting files
  • 2012/8/8 6:21

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


And the rule in Transifex is windows CR+LF?
then the rule should be promoted here too.

5
DCrussader
Re: Transifex Requirements for accepting files

the CR+LF bug probably is fixed, let me check.

7. All lines must end with CR+LF, LF only causes infinite loop.

6
Mamba
Re: Transifex Requirements for accepting files
  • 2012/8/8 8:33

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
7. All lines must end with CR+LF, LF only causes infinite loop.

Where? On Transifex???
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
irmtfan
Re: Transifex Requirements for accepting files
  • 2012/8/8 8:47

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Yes, DCrussader already wrote it in some topics.
Also i told you to send an email to this TX admins and ask about their reasons.
Now our developers are confused between these methods.

8
DCrussader
Re: Transifex Requirements for accepting files

Imtfan is right;
- yeah was mention long time ago, want me to discuss it with Infidex or u will take this part ?

Currently on banned cms I don't have problems which comes with X Core and Modules, bcz all they're files end with CR+LF, all strange symbols are removed, now they have to clean invalid spaces and my favorite Weight. Catz fork and XOOPS, still have some messed up files. (Well, not for the core) Once 2.5.6 or 2.6.0 is released as Beta, should review (for last time) every file for invalid spaces.

Some of the modules (not only Wishcraft modules) will be removed for infinite loops and no response from the module maintainer.
Some for the containing of non-transalatable strings (not only in Wishcraft modules).
Some for formatting language files to make them looking cool.

NVM, added to Infidex support desk:
Quote:

Got another problem with XOOPS/?????/XOOSLA
If the language file with PHP DEFINES ends with only LF causes infinite loop and TX platform instead to read all 377 strings read half or 1% of them - till reaches the string ending with LF.

The question from XOOPS/?????/XOOSLA developers is:
Why should be used Windows CR+LF for ending lines instead of Unix LF only, is there any reason ?

Thanks in advance.

Waiting for reply.

For me CR+LF is not a problem, for XOOPS to operate too, I'll not lock translations till Infidex respond - and they need sometimes like week or two to make reply.

9
jagibu
Re: Transifex Requirements for accepting files
  • 2012/8/8 9:39

  • jagibu

  • Just popping in

  • Posts: 68

  • Since: 2005/6/17


Quote:

DCrussader wrote:
for translations.
Such things, like
2. Remove the copyleft information from the headers (french on ISO looks very nice, like Herv?.


1. What with regular comments?
// Options préférences 
     
define("_MI_XFGB_NBMSG","Number of messages per page");

2. Spaces before line?
3. Empty lines?

Any restrictions or requirements?

10
DCrussader
Re: Transifex Requirements for accepting files

1. If they're in UTF-8 without BOM or UTF-8 - u can use Options préférences, but since we talking about English language files, all // comments must be English.
Example for small copyleft information, taken from latest version of mycomments
//  Author: Trabis
//  URL: http://www.xuups.com
//  E-Mail: lusopoemas@gmail.com


That's all - English symbols, not O with double dots above or such things.

2. Spaces in definitions - formatting is not allowed
correct definition:
define("_MB_MYCOM_DISPLAYC","Display %s comments");


Incorrect definition (look at GiJoe's modules)
define "_MB_MYCOM_DISPLAYC" "Display %s comments" ) ;


3. Empty lines?
If they're not formatted, they may stay.

Rest requirements are mentioned above: CR+LF for end of each line (until get response from Infidex), Unicode

Login

Who's Online

385 user(s) are online (298 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits