Internationalisation -> Custom langage not listed

Author Message

laurent le cadet

Tuesday 26 June 2007 9:48:50 am

Hi,

I created a new custom langage "Breton" which is still speaking here in France.
For that duplicate the translation fre-FR folder to bzh-BZ for the translation.ts file.
I also created a bzh-bz.ini file in locale folder and a flag call bzh-BZ.gif.

All the caches werre cleared but there is no new Breton additionnal langage under setup/langages langages dropdown list.

Normal ?

Something missing ?

regards.

Laurent

Łukasz Serwatka

Thursday 28 June 2007 12:36:20 am

Did you add this new language locale in site.ini.[RegionalSettings].SiteLanguageList for admin siteaccess?

Remember clear the cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

laurent le cadet

Thursday 28 June 2007 3:30:46 am

Lukasz,

I did what you said but nothing better.
There is still a problem with the dropdown langages selection list in admin when I want to add a translation (../content/translations).

The list is like that :

Custom
------------(a blank item in the list in first position)
Catalan
Chinese
...

The blank item should be "Breton", the new custom langage ?

Laurent

Łukasz Serwatka

Thursday 28 June 2007 3:52:12 am

Check language name in ezcontent_language table in database and make sure that SiteLanguageList for your current admin siteaccess contains correct locale with new language. It should work.

Check also what is in:
$GLOBALS['eZContentLanguagePrioritizedLanguages']

Do var_dump at the bottom of index.php.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Łukasz Serwatka

Thursday 28 June 2007 4:01:17 am

There is indeed something wrong with adding custom language in setup/languages. Can you please fill up bug report? It confuses users.

Create manually file bzh-BZ.ini under share/locale/ with:

[RegionalSettings]
LanguageName=Breton
InternationalLanguageName=Breton

Then you should be able to see it correctly on the list.

More info in:
http://ez.no/doc/ez_publish/technical_manual/3_9/features/multi_language/configuring_your_site_locale

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

laurent le cadet

Thursday 28 June 2007 5:22:25 am

I already have this settings in bzh-bz.ini.

I report this as a bug.

Laurent

laurent le cadet

Thursday 28 June 2007 5:55:03 am

Here you'll find the bug report:

http://issues.ez.no/IssueView.php?Id=11048&activeItem=1

Laurent

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:39:26
Script start
Timing: Jan 18 2025 22:39:26
Module start 'layout'
Timing: Jan 18 2025 22:39:26
Module start 'content'
Timing: Jan 18 2025 22:39:26
Module end 'content'
Timing: Jan 18 2025 22:39:26
Script end

Main resources:

Total runtime0.6529 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1641152.6563
Module start 'layout' 0.00520.0029 740.820339.5078
Module start 'content' 0.00800.6432 780.3281597.3203
Module end 'content' 0.65130.0016 1,377.648416.1094
Script end 0.6529  1,393.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4945160.0002
Check MTime0.00140.2107160.0001
Mysql Total
Database connection0.00070.105810.0007
Mysqli_queries0.575688.1586690.0083
Looping result0.00060.0955670.0000
Template Total0.616794.420.3083
Template load0.00210.319520.0010
Template processing0.614694.127920.3073
Template load and register function0.00010.020210.0001
states
state_id_array0.00100.151510.0010
state_identifier_array0.00160.243420.0008
Override
Cache load0.00180.2803540.0000
Sytem overhead
Fetch class attribute can translate value0.00050.072320.0002
Fetch class attribute name0.00120.179290.0001
XML
Image XML parsing0.00090.131420.0004
class_abstraction
Instantiating content class attribute0.00000.0049140.0000
General
dbfile0.00100.1528240.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs