Code Styling Project

It’s not a bug, it’s always a feature.
  • Deutsch
  • English
  • rss
  • Home
  • Blog
  • Imprint
  • Development
  • Manuals
  • Bugfixing

WordPress Localization - Features and future Development

codestyling | 28. December 2008 | 04:30

After i started the plugin project Codestyling-Localization i was impressed how big this will become. In the mean time the functional capabilities have been massiv extended but also the needs the user reported will grow daily.
While the plugin got a spreed at the community, i have to handle a huge number of wishes and reports now. This leads to the fact, that i have to consolidate the development and start a re-write of a new technology version more sophisticated as the concept study version which allows me and the users more flexibility.

Publishing the version 1.70 was the last one of concept study design, that gots feature extensions and defines the end of features for the version 1 series. Because of this decision this version has got a lot of new capabilities and will now report error cases more specific. Nevertheless this version will be bug fixed as long as the new one is not public and error reports reach my desk. But fundamental new extensions or wishes will not be integrated into version 1 series from now on.

Never fear, the version series 2 trunk is still in development. Starting January 2009 the development of new one redesign will reach the full capacity again. This new version will be completely restuctured inside and will also support modularisation. The first public developer version is planned to be go wild beginning march 2009 and will contain the complete new core components known. Afterwards more new features will be integrated and published too. I expect from the new structure and internal a better maintainance and faster future extension integration.

So much for that. But i want also introduce here the new features comming with version 1.70 at last update cycle. For better understanding the extensions provided, i will shortly describe them here.

original (US) Version vs. localized (DE) Version

If you download the original version from wordpress.org and want to translate it, you will face the issue, that the main language path is not included. This was forcing crashes of the main plugin page or that the files have been created at the wrong folder but couldn’t be found afterwards. This will be detected now and displayed in a proper way. If your web space allow directory creation by scripts, the missing folder can be created easly out of the plugins main page by pressing a button.

Plugin Detection and Language Path lookup

Plugin language file path conflictAlso plugins handling has some pitfalls. It is not always possible to detect the correct path, where the plugins want to load their language files out of because every plugin writer has it’s own philosophy hosting this files. This mostly occures, if plugin authors doesn’t pre-package a template file (*.pot) and no language files but the plugin comes with some sub directories. In this case the right path can’t be detected for sure.

Handling this the plugins shows now the folder structure of this plugin instead of the language table and the user can choose by click the right folder for the translation files. I would wish for furture WordPress versions that each plugin can be asked by using a new hook to get those informations at runtime or it have to be strict part of plugin header informations. The same thing is related to textdomain informations.

comfortable search functions for translation work

After the exact match search has been critizised al lot, this can be switched off now. This works then in ignore case mode for any entered search string.
But also this was not enough for some users. That’s why the search by regular expressions has been implemented and will be supported by a new dialog. For those of you, who are not familar with the syntax, the dialog provides a short view about the most common examples. I hope that this will also help beginners of regexp seach to understand it better.

I think, that the plugin reached a solid state and good functional range. To extened this massively and catch the current position of PoEdit the above described restructuring process will be essential.

For further wishes and suggestions please send me a mail, i will collect all carefully. If the volume may reach an extra ordinary size, i will open a voting system for what will be needed most. Fixing bugs at current public version will be done nevertheless, if i get a error report about.
I hope you understand my point of view and would be glad, if you support my work with the same quality of reports and feedback as in the past.

For those of you, that want a sneak peak into the future version i will show you here the settings page of the new 2.0 alpha internal developer version.


As you can see the new version will support any new feature possible with WordPress version 2.7 and the backend get a configurable language selection too. You can change the language instantly during runtime of admin session, at the login screen or let the registered users make their choise to define it in their profile. More specific information or a potential testable beta release will be published not faster than end of January 2009.

Categories
English, WordPress (US)
Comments rss
Comments rss

« WordPress Category Tree Chaos at “Write Posts” PHP function setlocale() … and numbers can be damaged »

16 responses    Leave a comment

Álvaro Degives-Más

Álvaro Degives-Más

25.01.2009 | 05:19

Whoa… Ambitious is a small word for what you’re setting out to do! Very, very nice. The language switch will undoubtedly further boost Codestyle Localization into a poEdit killerapp for the WP platform - no doubt about that.

Um… I’ve read somewhere that in some cases .po files can be “reversed” into .po files… Given the plethora of orphaned .mo files without .po (let alone .pot) files, that’s something I’m looking into now, whether it’s a reasonably worthwhile (not just totally preposterous) pursuit.

However: Halz- und Beinbruch in moving forward, this is a very exciting project! Thanks again for making the l18n and l10n crowd breathe again!

reply »

codestyling

codestyling

25.01.2009 | 05:44

Thanks for your response. I think you thought about *.mo reversing into *.po files ?
This is already done at 1.x versions, if you put only a *.mo file into a translatable theme/plugin or WordPress language folder. By just pressing edit instead of scanning all the PHP files, my plugin creates instantly a *.po file out of the existing *.mo file :-)
I’m working currently on direct support of *.pot for 2.x trunk, the ability to open the source language (as is in php, mostly english) and a second virtual source by demand beside the target version.
This may allow having as example english and french visible as source references. Your should be able comparing 2 source translations if you are in doubt but understand more than 2 languages. (the 2nd reference can be switched as you need if present).

reply »

Álvaro Degives-Más

Álvaro Degives-Más

26.01.2009 | 01:06

Yes, I’m sorry: I mistyped .po but meant, as you correctly say, converting .mo to .po files. I’m flabbergasted: you’re right - your plugin does convert .mo to.po files. Reason I didn’t notice is that there’s one plugin (the popular all-in-one-SEO-pack) that strangely only includes .mo files for which the localization doesn’t work (properly) in at least the Spanish version, so I’ve tried to “crack open” the .mo file, but no luck. Probably the result of a (very) old .mo file with references that are too outdated to do a reasonable job - strings get whacked up, it’s like a PHP horror movie!

Anyway - that’s beside the point, the more I work with your plugin (I’ve now worked with several plugins and even the WordPress app itself (resolving one very nagging problem) and I’m just plain ole impressed.

Good luck with your v2 development… I’m sure people all over the world are peeking in anxiously! :-)

reply »

Dr. Georg S. Adamsen

Dr. Georg S. Adamsen

03.02.2009 | 18:34

Thank you very much. This is an extremely useful plugin that I translated the very day I found it. The Danish localization files can be found here: Oversættelse af plugins - Codestyling Localization - og WP 2.7

reply »

codestyling

codestyling

03.02.2009 | 19:24

Thanks for this great feedback. I also get the mail, but i’m very busy at my profession at the moment. The idea is great and seems easy to be adapted. I think, the next refresh of 1.x version will contain both, your translation and also your usability extension.
(I will later on send a mail too.)

reply »

Saroj

Saroj

06.02.2009 | 09:01

It’s may be helpful.
But you do not show link this plugin. what way we find this plugin

reply »

codestyling

codestyling

06.02.2009 | 11:32

It can be found at Development Section (menu), i repeat the link here CodeStyling Localization
Please keep in mind, that language switching shown at the end of this article is an upcomming feature at next version.

reply »

Georg

Georg

25.03.2009 | 18:10

I was also looking for a .mo to .po-converter because of All in One SEO Pack, as I noticed your discussion above.

However, CL 1.80 does not finish loading the Danish file when I press “edit”. The po file generated is very clearly invalid and contains all sorts of strange strings.

I can mail it to you, if you like.

reply »

codestyling

codestyling

25.03.2009 | 18:20

Yes, please send it. I think, it’s related to the known escapement issues we have at translations, if something is contained like \b or things like that. It’s very difficult to track down all these issues because PHP and also Javascript tries to interprete them an it may be needed to handle this in a complete different way.

reply »

Hudu

Hudu

18.04.2009 | 01:19

Nice article. Thanks=)
http://www.tutobook.com

reply »

Best Rated Web Hosting

Best Rated Web Hosting

28.04.2009 | 11:32

how is the development of the plugin going on? where can I download it to my wordpress?

reply »

codestyling

codestyling

05.05.2009 | 17:57

It’s only delayed for the moment because of personal time management issues :-)
On the other hand side Wp changed internal Languange at upcomming WP 2.8 so i have also to check it. This may take until end of May, i plan a release at mid of June.

reply »

Learn Spanish

Learn Spanish

21.05.2009 | 04:39

Great site and information - i recommend this site

reply »

Pradeep

Pradeep

13.06.2009 | 13:50

Wow, Fantastic comment box designs, really Amazing.Just tell me the feed subscription Area. need to become one of your blog network fan :)

Regards,
Pradeep

reply »

Seo company

Seo company

18.06.2009 | 11:19

thanks for this plugin and also i was looking for the link to download it. But you gave that in the comment section.

Will see and let you know the feedback

reply »

Mat_

Mat_

27.07.2009 | 11:55

Amazing plugin. Sooo useful!
Thanks, and thanks again :)

reply »

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Navigation

  • Common
  • jQuery at WordPress
  • WordPress (US)

Search

Newer Posts ...

  • jQuery 1.3.2 causes problems at IE 8
  • “Page Columnist” - Posts and Pages at Column Layout
  • WordPress 2.8 changes the metabox model for admin pages
  • How to use Wordpress Metaboxes at own plugins
  • PHP function setlocale() … and numbers can be damaged

Older Posts ...

  • WordPress Category Tree Chaos at “Write Posts”
  • WordPress 2.6.1 loads too many script.aculo.us components
  • WordPress 2.6 and the Text/Diff fatal errors
  • WordPress error during translation file usage - the reason
  • WordPress 2.5.1 - multi-lingual admin login (beta download)
rss Comments rss valid xhtml 1.0 design by jide powered by Wordpress get firefox