Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 06:20:26 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
149667
Posts in
21100
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Language File Editor
Pages: [
1
]
Go Down
Author
Topic: Language File Editor (Read 16805 times)
rsmith
Offline
Posts: 194
Language File Editor
«
on:
April 09, 2006, 12:14:16 PM »
Hi Everyone..
I have a new module for testing, Based on the Template Editor, The Language Editor will allow you via the Administrative Interface to edit/create the language files for any installed modules that takes advantage of the languages ability of WB.
As with any new module, it needs testing, Please test if possible, but not on production sites since this still in development.
It installs as a new module, Add-ons - Modules - Install Module, and then can be found under Settings - Advanced - Language Edit
Like the Template Editor, A list of all Modules and Avaliable Languge Files will be displayed, Clicking the radio box and contine at the bottom will edit that file.
There are additional buttons for each Module to Create/Edit a New language file. For example if you have Polish installed in your WB languages a button to create a polish language file will be available. This new file will be a copy of the existing EN English one that you can edit and save in polish (Most sites may only see the English button)
Also, like the Template Editor, there is a zip file radio button that will allow you to download a zip of all language files for that specfic module.
I welcome comments and suggestions, Hopefully this can make the creation of Language files easier for those with multi lingual sites Smiley
Rob
Change log-
Version 0.6, 4-8-2006
* Built from template edit v1.4a
* Create buttons to copy the existing EN.php and create a new language file for the desired Language, if Language already exists it will edit it. Languages availabe to create are based on the Language modules installed into WB
* Zip File Download of All Language files for a specific module
Version 0.5, (never released to the public, only existed a couple of hours) 4-7-2006
* Built on Template edit v1.3
* Edit existing language files installed for any module
Additional To-do's
* Edit WB's Default Language files.
New Version Released, Check A Few Posts Down
«
Last Edit: April 09, 2006, 07:50:36 PM by rsmith
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #1 on:
April 09, 2006, 06:19:09 PM »
not bad ... just had a quick look at it.
The only thing I can see is that the german umlauts (ä,ö,ü) and special characters are replaced by questionmarks. Any chance there to get another RC?
But otherwise, nice idea! Keep up with it.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Argos
Moderator
Offline
Posts: 2084
Re: Language File Editor
«
Reply #2 on:
April 09, 2006, 06:21:23 PM »
Nice idea indeed!
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #3 on:
April 09, 2006, 06:31:35 PM »
Hi
I am a couple hours or so away from having the next RC with the following chages
+Cleaned up the Formatting a bit
+Alphabetical order on the installed language listing
+Fixed a button issue with IE (everything else worked fine)
+Able to Edit & Create System Language Files
As far as the special characters go, I'll have to look into that... I tested, Copied your "ä,ö,ü" and seemed to be fine on my system... any ideas?
I have another server I can set up with a different OS and test there, it may be a few days for that.
Thanks for the Feedback
Rob
Logged
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #4 on:
April 09, 2006, 06:51:29 PM »
then it seems to be a charset issue ... can you implement, that the output is displayed in the charset currently in use by WB? Then it shouldn't come to any problems with the different languages ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #5 on:
April 09, 2006, 06:55:33 PM »
I'll look at this.. might not be in this afternoons post but tommorows
Do you have the template editor installed? the basis of the Language editor is the template editor, if the template editor works with the special charaters this should too?... but I will look into it
would like to make it very usefull for everyone
Thank
Rob
Logged
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #6 on:
April 09, 2006, 07:56:42 PM »
Language editor & creator for Installed modules & websitebakers Language Modules
Here is the second Test Release of the Language Editor Module
As with all tests please be careful, make sure you back up your existing language files so if there is a problem they can uploaded again.
New Installations can be done as any other module throught the add-ons- modules - install module
To Update from a previous Install just overright all the files in the modules/languageedit and modules/languageedit/languages folder
One Issue I know of is if the file is edited and the format is incorrect it will error out and could cause problems when the language file is read. (after all it is PHP code that is being edited.)
I await everyones comments
Thanks
Rob
oh.. the German Language file can probably be "fixed", I know only a word or two of german, so an online translator was used, so the grammer is probably funny, If someone wants to change it, or create new languages I will be happy to include them in the package
Additional To-do's
* Check out the special character issue posted in the forum by kweitzel
Apr 10,2006
* Make it "unbreakable", break out each variable and list text boxes for each one, this way someone who knows no code can still get the formatting 100%
# Display against the "default" english file showing the missing varaiables so they can be updated
* Side note, for module developers, load the english language, and then check and load the other language, this way if there is a missing variable the text will still appear, just in english
Change Log
Version 0.7 - released, April 9th 2006, 3pm EST
* Ability to Create New System Files
* Ability to Edit WB's System Language files.
* Corrected formatting around the new language links
* Put the Languages in alphabetical order
Updated version Below
«
Last Edit: April 13, 2006, 05:25:24 PM by rsmith
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #7 on:
April 09, 2006, 08:43:21 PM »
OK ... I will take care of the german language file ... looks like a babelfish translation ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #8 on:
April 09, 2006, 08:46:43 PM »
yup, was a babelfish one
it works enough that its understandable at least going from german to english
only thing ive found so far (10 min looking) about the umlauts..
WYSIWIG editors: incorrect html entities
http://forum.websitebaker.org/index.php/topic,2684.0.html
Ive tried a few things not able to reproduce it yet.. but I will keep looking
Rob
Logged
bupaje
Offline
Posts: 519
Re: Language File Editor
«
Reply #9 on:
April 09, 2006, 09:28:38 PM »
You may find this page useful
http://www.w3.org/International/tutorials/tutorial-char-enc/
Logged
My Blog, My Site
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #10 on:
April 09, 2006, 09:31:49 PM »
I looked through some language files as well in the meantime. Some of them use the HTML naming ("ä"), while some others use the written character.
The ones using the HTML notation should not fail in any case, the others will, if they are coded for the wrong charset (i think).
Maybe it will be better to try and convert them (from your module, if possible) to the "ä" version to avoid incompatibilities. Do you think that is possible?
Of cause, that doesn't change anything for the other languages with special characters (like french or even the simplified chinese one we have.
Maybe also another idea: Do you think it is possible to make a "convert" module? There have been additions to the language variables from 2.5.2 to 2.6.x and then there will be some further ones to 2.6.3 ... something like "If language file has entries missing, replace with the english entries", so that they can be selectively translated without manually (at least for me now) adding the missing lines in english into the translated version.
Hope you understand what I mean ... sort of an automatic update (adding of the missing lines).
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #11 on:
April 09, 2006, 09:48:57 PM »
Couple Ideas...
I've checked against mine... charset in WB didnt seem to matter... changing it didnt change anything... was able to get a different between ä and ä if i switched the language encoding on my browser.. (Netscape 7.2) UTF-8 seems to process both just fine.. Western 8859-1 is and others are getting changed.
A search replace is easy enough to do.. I acutaly do a little of this when creating a new System Language file, replacing the file names, Prefix and Language name before installing it. so a function designed to search replace all weird letters could be done easy enough just need to get a list and make it "editable"...
hum maybe my next WB Module?...
there are a couple of functions already built into WB im looking for they might help solve some of this... and ill post my results
Thanks
Rob
Logged
rsmith
Offline
Posts: 194
Re: Language File Editor 0.8.5
«
Reply #12 on:
April 13, 2006, 05:32:46 PM »
Here is the latest version of the Language Editor
A couple known issues
* German File DE.php has alot of the tests done within it, before final release this file will have to be updated
* Code Needs Cleaned Up
To-Do's
# See what can be done with the special characters, works if charset within the browser is set to the correct format
More Info & Screen Shots and latest developments can be found here:
http://slink2.no-ip.info:82/wsb/pages/wb-ideas/language-editor.php
But it seems to be working well, just needs to be tested and tested again, I will continue to test and test and test, but as always with new software, Please backup and do not run on production boxes, just in case
Language Editor v0.8.5
* small adjustments after running on a number of different servers. stable (hopeuflly) and working so far
Language Editor v0.8.4
*requested - larger text areas so edit of longer lines is easier
Language Editor v0.8.3
* Corrections to handle variable string quotes
* Additional Testing, Backup feature works well
Language Editor v0.8.2
* Backup/Restore of Original Language Files Page
* More Save buttons, within the edit page, every 50 lines
Language Editor v0.8.1
Released April 13 2006 12:30am EST
* Addition of Identical Record Count - Tested with Netscape 7.x, FireFox 1.5.x, IE6, Mozilla, Epifiany, Konqueror
* Corrections made and works now April 13 2006 7:50am EST
* Code Cleaned Up More
* Make it more user friendly, break out each variable and list text boxes for each one, this way someone who knows no code can still get the formatting 99% correct
* need to read form data and rebuild file from new entries.
* A couple new language entries
* cosmetic adjustments to make it look pretty
* Some error checking against inconsistant coding within the language files, they all seem to have the same oops,
* Setup And Parse php file for individual line editing, submission form is 95% complete
* Display against the "default" english file showing the missing and identical variables so they can be identified and updated easily
* Screen Shots of whats new
If there are any problems, please let me know and if possible include the file and backup file you were editing, there is also a backup file created when you start editing, just rename the bak file and all will be back to normal
New Version Below
«
Last Edit: May 01, 2006, 10:40:47 PM by rsmith
»
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7663
Re: Language File Editor
«
Reply #13 on:
May 01, 2006, 09:41:27 PM »
And the next version
There are no new features, only cleaned some issues
Quote
A couple known issues
* German File DE.php has alot of the tests done within it, before final release this file will have to be updated
* Code Needs Cleaned Up
Changelog Language Editor v.0.8.6
+ edited the German File DE.php
+ cleaned and reorderd the code
+ minor layout changes
ToDo list
At the moduls list at the point where you can create new languages for a modul, there should only be files listed wich are not present yet. I mean as WB System languages are installed EN, DE, PL. All modules have a EN language file, a lot of them have DE languagefile and none of them have PL language file. So in the list of create a new language file for the modules should only this languages be shown wich are not present in this module. It makes no sense to have f.e. the ability to edit the EN language file and to make a new EN language file.
Have fun
Matthias
Edit:
Newer Version some posts below
«
Last Edit: May 01, 2006, 11:18:43 PM by ruebenwurzel
»
Logged
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #14 on:
May 01, 2006, 10:38:11 PM »
Hi
Per ruebenwurzel's "ToDo list", the listing of languages that have been installed but no language files exist, has been limited to only those that do not exist. so it will not show the EN.php, DE.php etc but would show PL.php or others etc.
Newer Version Below
«
Last Edit: May 01, 2006, 11:30:51 PM by rsmith
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #15 on:
May 01, 2006, 10:51:08 PM »
just gave it a quick shot, fine here!
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7663
Re: Language File Editor
«
Reply #16 on:
May 01, 2006, 11:15:55 PM »
And the next version
Changelog Language Editor v 0.8.6b
:
+ Text for create new language now only shown when there is a new language to create
Have fun
Matthias
Edit:
Newer Version below
«
Last Edit: May 09, 2006, 05:44:06 AM by ruebenwurzel
»
Logged
rsmith
Offline
Posts: 194
Re: Language File Editor
«
Reply #17 on:
May 09, 2006, 01:39:43 AM »
Next!
Change Log Language Editor
v 0.8.7
:
+Corrections to forms in tool.php to make more compatable with some browsers
+Updates to tool_edit.php and tool_save.php to better handle symbols and html coded characters.
Rob
EDIT See updated version below
«
Last Edit: May 09, 2006, 12:35:14 PM by rsmith
»
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7663
Re: Language File Editor
«
Reply #18 on:
May 09, 2006, 12:34:06 PM »
and the next one
Changelog v0.8.7a
+ minor fixes in tool.php (deleted some not needed tables, cleaned some echo code lines)
Matthias
«
Last Edit: May 09, 2006, 12:36:15 PM by ruebenwurzel
»
Logged
thorn
Offline
Posts: 980
Language File Editor V0.91 - will convert from/to htmlentities automatically
«
Reply #19 on:
July 01, 2008, 07:21:53 PM »
Hello,
attached you will find a new version of the language editor,
which will convert from and to htmlentities automatically. That is you can edit e.g. the russian language file in clear text, and it gets converted to htmlentities on saving automatically - suitable for use with utf-8 as well as iso-8859-5.
On load, the file is convert back to clear text automatically for further editing.
Would be nice if someone can do some tests.
thorn.
Logged
Projekte
marccouture
Offline
Posts: 216
Re: Language File Editor
«
Reply #20 on:
June 04, 2009, 04:23:20 PM »
Has anyone used this module in a recent WB build? If I use it to modify the FR.php file on my site, the entire site goes down (the default language of the site I am testing this on is in french). Thankfully, the script backs up the original file before making any modifications...
EDIT: if the FR.php file is edited while in default English language mode, everything works just fine.
«
Last Edit: June 04, 2009, 04:26:38 PM by marccouture
»
Logged
Marc C.
Vincent
Offline
Posts: 360
Re: Language File Editor
«
Reply #21 on:
September 01, 2009, 01:37:07 PM »
I had the same issue.
Never had that problem before, but with 2.8 all pages disappeared. Indeed, fortunately I could rename the NL.bak to NL.php and this solved the problem.
Now I decided to use the addon file editor, which does the same job just fiine.
Vincent
Logged
Johnny Madsen
Guest
Re: Language File Editor cannot change the words
«
Reply #22 on:
September 13, 2009, 04:45:33 PM »
I try to change language from .de to .DA with the editor in "feedback" module
But I cannot change any word.
The files atribut is 644, and I cannot change it.
What can I do?
Johnny
Logged
kweitzel
Forum administrator
Offline
Posts: 6820
Re: Language File Editor
«
Reply #23 on:
September 13, 2009, 08:06:09 PM »
make it writable via FTP client or shell ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
ipfelkofer
Offline
Posts: 16
Re: Language File Editor
«
Reply #24 on:
August 15, 2010, 08:32:18 AM »
I installed and tested the new version of Language Editor. It seems to be a very useful tool, but I have two remarks/suggestions:
It does not properly function with language files where the declaration is performed with "define" instead of "=".
It would be nice, if one could select any existing language file instead of always using EN.php as source. From a users point of view, one would select an existing file (radio button) and then select "create ......".
I think changing these points would add a lot of usability to the module and also enable additional people to create new language files easily.
Regards
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...