HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   New in ISPConfig development and have some questions (http://www.howtoforge.com/forums/showthread.php?t=28804)

karailiev 19th November 2008 00:27

New in ISPConfig development and have some questions
 
Hello all!
I'm new in the development team and have few questions.
I've assigned to myself a ticket about password strength indicator and I have it working. It's about 100 lines javascript and I'm wondering where to put it.
When I add it to interface\web\js\scrigo.js it's working fine, but I want to ask if this is the right place.
I also have to create new label "Password strength", so I added it to interface\web\client\lib\lang\en_client.lng
Should I edit other languages' files (de/it/fr/nl) or should I somehow inform the users who maintain them?

till 19th November 2008 09:58

Quote:

When I add it to interface\web\js\scrigo.js it's working fine, but I want to ask if this is the right place.
Thats the right place.

Quote:

Should I edit other languages' files (de/it/fr/nl) or should I somehow inform the users who maintain them?
The best might be to add the english version to the other language files as well. But in case that a developer forgtets to add a string to all languages, it is not a problem as the language editor has a feature called "merge" to add missing strings from the english master language file to the other language files.

karailiev 19th November 2008 16:19

Is there some way to use the translation files in javascript?
I have strings like "too short", "weak", "strong" and it would be nice to translate them to all available languages.

till 19th November 2008 16:24

Thats not implemented yet. But it should not be a problem to deliver the javascript trough a php file and replace the language strings with the template engine used in ispconfig3.

karailiev 21st November 2008 12:05

When I see a bug or feature that I can fix/implement should I do it or first have to report it in the bugtracker and wait to be confirmed?

till 21st November 2008 13:30

Please report it in the bugtracker and assign it to yourself. You dont have to wait until it gets confirmed.


All times are GMT +2. The time now is 09:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.