View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Problems with lists of objects - Page 3 - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Problems with lists of objects

More
22 Jui 2014 17:22 #13 by babynus
Array can be empty at some moments, as it is loaded dynamically.

In the profile screen, do you have some names translated ?

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
22 Jui 2014 18:42 - 22 Jui 2014 18:54 #14 by Jean-Luc

babynus wrote: Array can be empty at some moments, as it is loaded dynamically.

So, for testing, I have enforced the load at each call, and added some suffixes to the returned value to see what comes from.
The functions returns a value, but always null. An empty array would be 0 (zero) length, not "undefined".

babynus wrote: In the profile screen, do you have some names translated ?

Via javascript, no one, nowhere !
Only translations with the php module are made (and the some untranslated in that way are really missing).

Edit: tested on external server, connected with Internet Explorer 8: same problem, so Firefox javascript is not responsible.
Last edit: 22 Jui 2014 18:54 by Jean-Luc.

Please Connexion or Create an account to join the conversation.

More
22 Jui 2014 20:51 - 22 Jui 2014 20:51 #15 by babynus
So it seems you broke something in the lang.js file that prohibits its loading.
Some special caracters may cause this, or some "not reallu special" ones suche as point or line break.

How did you generate lang.js file ?
Did you use lang.xls ?

Babynus
Administrator of ProjeQtOr web site
Last edit: 22 Jui 2014 20:51 by babynus.

Please Connexion or Create an account to join the conversation.

More
23 Jui 2014 08:00 - 23 Jui 2014 08:04 #16 by Jean-Luc

babynus wrote: So it seems you broke something in the lang.js file that prohibits its loading.
Some special caracters may cause this, or some "not reallu special" ones suche as point or line break.

No « special characters ». Therefore, nothing is loaded neither for french nor for english, and this one is pure ASCII !
Verified all end-of-line : LR+NL (DOS-Windows) everywhere. Tried NL (Unix), no change.
Found an error due to sort made on the entire file (except first and last lines which are delimiters: the last line (currentLocaleOfFile) was not in alphabetical place, so it was moved to the middle without terminal comma, whereas the new last line (year) kept a comma. But afted correction, still no change.

babynus wrote: How did you generate lang.js file ?
Did you use lang.xls ?

Not at this time, only direct update in lang.js files.

But fr/lang.js and en/lang.js (identical to nls/lang.js, a symbolic link would be more appropriate than a duplication… but problematic under Windows, I suppose) have been in-depth checked, I’m sure they are O.K.
However, they are in attachment here (suffixes with ".txt" to be accepted as attachments), so you can verify by yourself..
Attachments:
Last edit: 23 Jui 2014 08:04 by Jean-Luc.

Please Connexion or Create an account to join the conversation.

More
23 Jui 2014 11:19 #17 by babynus

No « special characters ». Therefore, nothing is loaded neither for french nor for english, and this one is pure ASCII !
Verified all end-of-line : LR+NL (DOS-Windows) everywhere. Tried NL (Unix), no change.
Found an error due to sort made on the entire file (except first and last lines which are delimiters: the last line (currentLocaleOfFile) was not in alphabetical place, so it was moved to the middle without terminal comma, whereas the new last line (year) kept a comma. But afted correction, still no change.

Can you try and retrieve standard lang.js file and check that profile names are translated in the list (working fine with standard version).
Then add progressively you new tranlation lines, and check progressivemely to find which new line brings the issue.

Not at this time, only direct update in lang.js files.

Advise : use lang.xls file to add new lines and generate lang.js files

But fr/lang.js and en/lang.js (identical to nls/lang.js, a symbolic link would be more appropriate than a duplication… but problematic under Windows, I suppose) have been in-depth checked, I’m sure they are O.K.

As translation works fine woth standard version and not with your own, I'm almost sure issue comes from the new lines.

However, they are in attachment here (suffixes with ".txt" to be accepted as attachments), so you can verify by yourself..

Sorry, but I'll spend no time to analyze your own changes. I would do this only for paid support customers.

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
23 Jui 2014 14:01 #18 by Jean-Luc
OK, found. ONE key had a hyphen, that javascript didn’t digest!
This implies that javascript, somewhere in the load process, convert these keys to variables, I don’t see why…

Now, all works. :)

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.042 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.