Re: [development] Drupal and i18n, the holy grail?
On example: using single storage, we can store also information about languages, so for a single menu item it should look similar as this: <en>about us</en><de>ueber uns</de><hr>o nama</hr> When drupal builds up the page, after it loads the node, proper translation should be processed (if user is on EN part of the site, then should be always English content processed from the node. If there is no content (and menu is there), we can put some default info message.
Of course this approach than needs changes in GUI so that we can edit each language content separately (combo box with language selection, some _javascript_, some text processing/tagging in background).
Advantage is that we don't need to change table structure.
This is nice, but what about speed? It will require parsing each and every node content for every page display (or caching). Second approach, with <?php tags is very user unfriendly too... Jakub MeBa Suchy -- Jakub Suchý <jakub.suchy@logios.cz> GSM: +420 - 777 817 949 LOGIOS s.r.o, V Podhájí 776/30, 400 01 Ústí nad Labem tel.: +420 - 474 745 159, fax: +420 - 474 745 160 e-mail: info@logios.cz, web: http://www.logios.cz
Op zondag 5 maart 2006 21:36, schreef Jakub Suchy:
<en>about us</en><de>ueber uns</de><hr>o nama</hr>
Storing metadata with several values in one cell (ie serialisation, CSVs, XML etc) is bad. Very Bad. Ask any database architect about that, and they will tell you the same. Bèr -- PGP ber@webschuur.com http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc PGP berkessels@gmx.net http://www.webschuur.com/sites/webschuur.com/files/ber_gmx.asc Sympal draait nu voor het grootste deel al op 4.7: http://help.sympal.nl/sympal_draait_nu_voor_het_grootste_deel_al_op_4_7
participants (2)
-
Bèr Kessels -
Jakub Suchy