Welcome, Guest. Please login or register.
August 20, 2008, 05:29:18 PM

Login with username, password and session length
Search:     Advanced search
Website Baker 2.7.0 (stable) released!
For more information look here.
The announcement board can be found here.
60557 Posts in 9791 Topics by 5824 Members
Latest Member: blubb
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Archive
| | |-+  Language File Editor
Pages: [1] Go Down Print
Author Topic: Language File Editor  (Read 6493 times)
rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« on: April 09, 2006, 01: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, 08:50:36 PM by rsmith » Logged
kweitzel
Forum Team
A Baker's Baker
*****
Online Online

Posts: 4215


WWW
« Reply #1 on: April 09, 2006, 07: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

Argos
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 531


WWW Email
« Reply #2 on: April 09, 2006, 07:21:23 PM »

Nice idea indeed!
Logged

Jurgen Nijhuis
Argos Media
www.argosmedia.nl
WB sites: kwaliteitinklantcontact.nl, bruschke.nl, bereikbaarheid.nl, rondvaartijmuiden.nl, nvpit.nl, synergoscommunicatie.nl, kerncompany.nl, wijnenspijs.nl, almerehuren.nl, bakker-schilder.nl
rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #3 on: April 09, 2006, 07: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 Team
A Baker's Baker
*****
Online Online

Posts: 4215


WWW
« Reply #4 on: April 09, 2006, 07: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

rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #5 on: April 09, 2006, 07:55:33 PM »

I'll look at this.. might not be in this afternoons post but tommorows Smiley
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 Smiley would like to make it very usefull for everyone

Thank
Rob
Logged
rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #6 on: April 09, 2006, 08:56:42 PM »

Language editor & creator for Installed modules & Website Bakers 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 Smiley

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, 06:25:24 PM by rsmith » Logged
kweitzel
Forum Team
A Baker's Baker
*****
Online Online

Posts: 4215


WWW
« Reply #7 on: April 09, 2006, 09:43:21 PM »

OK ... I will take care of the german language file ... looks like a babelfish translation ... grin

cheers

Klaus
Logged

rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #8 on: April 09, 2006, 09:46:43 PM »

yup, was a babelfish one grin
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
Geek-Like Baker
*****
Offline Offline

Posts: 401


WWW
« Reply #9 on: April 09, 2006, 10:28:38 PM »

You may find this page useful http://www.w3.org/International/tutorials/tutorial-char-enc/
Logged

kweitzel
Forum Team
A Baker's Baker
*****
Online Online

Posts: 4215


WWW
« Reply #10 on: April 09, 2006, 10: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

rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #11 on: April 09, 2006, 10: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"... Smiley 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
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #12 on: April 13, 2006, 06:32:46 PM »

Here is the latest version of the Language Editor  smiley

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  grin 

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, 11:40:47 PM by rsmith » Logged
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Online Online

Posts: 6255


Keep on Rockin


WWW Email
« Reply #13 on: May 01, 2006, 10:41:27 PM »

And the next version  wink

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 02, 2006, 12:18:43 AM by ruebenwurzel » Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #14 on: May 01, 2006, 11: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 02, 2006, 12:30:51 AM by rsmith » Logged
kweitzel
Forum Team
A Baker's Baker
*****
Online Online

Posts: 4215


WWW
« Reply #15 on: May 01, 2006, 11:51:08 PM »

just gave it a quick shot, fine here!

cheers

Klaus
Logged

ruebenwurzel
Leaders Team
A Baker's Baker
*****
Online Online

Posts: 6255


Keep on Rockin


WWW Email
« Reply #16 on: May 02, 2006, 12:15:55 AM »

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, 06:44:06 AM by ruebenwurzel » Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
rsmith
Senior Baker
*****
Offline Offline

Posts: 193


« Reply #17 on: May 09, 2006, 02: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.


 smiley
Rob

EDIT See updated version below
« Last Edit: May 09, 2006, 01:35:14 PM by rsmith » Logged
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Online Online

Posts: 6255


Keep on Rockin


WWW Email
« Reply #18 on: May 09, 2006, 01: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, 01:36:15 PM by ruebenwurzel » Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
thorn
Addons Team
Master Baker
******
Offline Offline

Posts: 349



WWW Email
« Reply #19 on: July 01, 2008, 08: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

Morgenrot - wenn das Licht die Nacht bedroht.
Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!