Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th September 2011, 12:12
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Lightbulb Language Maintenance script

We should make some sort of language maintenance tool.
I notice that keeping all those language files up to date can be a b*tch.
When you add one new string, you need to manually go through all the language files and add one line.

All files have (read: should have) the same variables defined with a translation (or at least in english), so it should be not that hard to have a script run through them and add/edit/delete the specified variable.

I'm thinking of a cli script, included in the svn as dev tool.
Reply With Quote
Sponsored Links
  #2  
Old 13th September 2011, 15:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,473
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

There is already such a script available in the ispconfig interface and I use it regularily to keep languages in svn up to date. See System > Language Editor > Merge. You have to add strings only to the 'en' lang file, dont add strings to other langiages directly.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th September 2011, 15:23
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Holy cow!
Why have i completely overlooked that option!!

So the way to work is:

f.e.

1. edit: /usr/local/ispconfig/interface/web/admin/lib/lang/en_server_ip_list.lng directly, adding a new string.
2. go to: System > Language Editor > Merge
3. select a language
4. click merge

nice! Though, to bad you can't merge all language at the same time

Code:
Added 1 lines to the file /usr/local/ispconfig/interface/web/vm/lib/lang/ja_openvz_ostemplate_list.lng
File does not exist yet. Copied file /usr/local/ispconfig/interface/web/vm/lib/lang/en_openvz_action.lng to /usr/local/ispconfig/interface/web/vm/lib/lang/ja_openvz_action.lng
Added 3 lines to the file /usr/local/ispconfig/interface/web/client/lib/lang/ja_client.lng
Added 3 lines to the file /usr/local/ispconfig/interface/web/client/lib/lang/ja_reseller.lng
Added 1 lines to the file /usr/local/ispconfig/interface/web/client/lib/lang/ja_clients_list.lng
Added 5 lines to the file /usr/local/ispconfig/interface/web/client/lib/lang/ja_client_template.lng
Added 1 lines to the file /usr/local/ispconfig/interface/web/mail/lib/lang/ja_mail_get.lng
Added 1 lines to the file /usr/local/ispconfig/interface/web/monitor/lib/lang/ja.lng
Added 2 lines to the file /usr/local/ispconfig/interface/web/admin/lib/lang/ja.lng
Removed 2 lines to the file /usr/local/ispconfig/interface/web/admin/lib/lang/ja.lng
Added 2 lines to the file /usr/local/ispconfig/interface/web/admin/lib/lang/ja_server_config.lng
File does not exist yet. Copied file /usr/local/ispconfig/interface/web/admin/lib/lang/en_iptables.lng to /usr/local/ispconfig/interface/web/admin/lib/lang/ja_iptables.lng
Added 4 lines to the file /usr/local/ispconfig/interface/web/admin/lib/lang/ja_server_ip_list.lng
File does not exist yet. Copied file /usr/local/ispconfig/interface/web/admin/lib/lang/en_iptables_list.lng to /usr/local/ispconfig/interface/web/admin/lib/lang/ja_iptables_list.lng
Added 3 lines to the file /usr/local/ispconfig/interface/web/admin/lib/lang/ja_server_ip.lng
There's some updating to do!
Reply With Quote
  #4  
Old 13th September 2011, 16:27
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,473
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

Quote:
There's some updating to do!
But please add this only as option, as it is not always a good choice to merge all languages at once
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot login to phpmyadmin penkku HOWTO-Related Questions 1 24th February 2011 09:26
use jawstats / mawstats with ispconfig e100 Tips/Tricks/Mods 3 19th December 2010 11:33
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
Companion Script #2 for The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]" MrCompTech Tips/Tricks/Mods 0 10th July 2010 05:11
Internet Explorer won't connect to my server wctaelectronics Server Operation 10 27th October 2008 21:14


All times are GMT +2. The time now is 16:41.


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