Localization Client Integration

zilla - March 14, 2008 - 21:03
Project:String Overrides
Version:6.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

i'm not sure what this would entail, or if it could be automated, but it would be so cool to install this module and see a huge list (maybe multiple pages) of ALL system content included in the drupal core and drupal core modules (not additional modules) - or at least 'major modules' like forum, poll, book, etc...

what i mean is a user clicks through to this module and sees a set of options for 'existing system strings' or 'create new string' - but for existing strings there's a set of clickable groupings: system core (all core system strings), system core modules (forums, polls, book etc)

then a user clicks 'system core modules' and sees pages of parsed strings already prepopulating the left side boxes and can simply scan to the one he/she wants and change "your %page has been created" to "dude, you just made a new %page"

it would make this soooo much easier to use for people who don't get it right away - and this would let people really personalize their drupal installations to a new whole new level, a whole 'nother type of customization made simple through a module! it would be (insert string here)!

#1

zilla - March 14, 2008 - 21:06

okay, let me just add to this: if the process of parsing out all of the strings by running a few 'find' commands on the batch of system files in the drupal tarball can not be automated, then obviously putting together such a list would be quite tedious.

i'd be happy to help out with this and help to organize a large punch list of all areas/core modules to scan and then perhaps a few folks could simply put together text files of 'everything' to combine for the module developer...but only if this request is considered interesting enough.

#2

Rob Loach - March 27, 2008 - 20:43
Title:..how about prepopulated table of "all" drupal core system content?» Localization Client Integration
Version:6.x-1.4» 6.x-1.x-dev
Component:Documentation» User interface

Gabor is working on the Localization Client module which allows you to dynamically see a bunch of strings on a page that can be translated. It would be great to get this working with String Overrides so that you could just click on a string, and have it added to String Overrides.

#3

geodaniel - September 16, 2008 - 15:19

It would be great to see this integrated more closely with l10n client module. On a related note, what are the benefits of using this module over adding a custom English language to a site and just translating that through l10n client?

#4

illuminaut - September 23, 2008 - 16:12

what are the benefits of using this module over adding a custom English language to a site and just translating that through l10n client?

Performance.

#5

moshe weitzman - November 10, 2008 - 21:38

I looked into this today. It might make sense to just grab the functions/css/js we need from Localization client and do it ourselves here. Or maybe not. Here are the issues:

  • Localization client will not do anything unless you have multiple languages enabled for your site, and are browsing in a non English language. Thats already a big problem for String Overrides. many users of this module are English sites.
  • Even after you create a second language and browse in that language, your translations are stored into the locale_sources table. String Overrides want to store translations as a variable. This is easily overcome with a form_alter of the l10n_client_form() and change its action to point to our own callback which saves into our variable.
  • There is some confusing admin cruft in Localization Client about sharing with a Localization server which is meaningless in our String Overrides world.

So, i think we need to use their UI but ditch the rest. Feedback welcome.

#6

Rob Loach - November 10, 2008 - 22:00

Interesting ideas, Moshe. What if we fooled the Localization Client module with a String Overrides language, and then had an additional tool to move the translations from the locale_sources table over to the String Overrides variable namespace?

 
 

Drupal is a registered trademark of Dries Buytaert.