Add a language in translations tab

Posted by kasia@pawel.com 

Advanced
February 09, 2011 08:39PM
The following message popped up when a new language code (ka) was added too soon to the list under the Translations bookmark. How do I either remove/add the added code so I can proceed.


There is an error. Please report the message and full backtrace in the Piwik forums.

Notice: Undefined index: General_EnglishLanguageName in /home/nrfirth1/public_html/gotfirth/Piwik/plugins/LanguagesManager/API.php on line 125

Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined index: General_EnglishLanguageName, /home/nrfirth1/public_html/gotfirth/Piwik/plugins/LanguagesManager/API.php, 125, Array ([filenames] => Array ([0] => af,[1] => am,[2] => ar,[3] => be,[4] => bg,[5] => ca,[6] => cs,[7] => da,[8] => de,[9] => el,[10] => en,[11] => es,[12] => et,[13] => eu,[14] => fi,[15] => fr,[16] => gl,[17] => he,[18] => hu,[19] => id,[20] => it,[21] => ja,[22] => ka,[23] => ko,[24] => lt,[25] => nb,[26] => nl,[27] => nn,[28] => pl,[29] => pt-br,[30] => pt,[31] => ro,[32] => ru,[33] => sk,[34] => sq,[35] => sr,[36] => sv,[37] => te,[38] => th,[39] => tr,[40] => uk,[41] => zh-cn,[42] => zh-tw),[languagesInfo] => Array ([0] => Array (
 => af,[name] => Afrikaans,[english_name] => Afrikaans),[1] => Array (
 => am,[name] => አማርኛ,[english_name] => Amharic),[2] => Array (
 => ar,[name] => العربية,[english_name] => Arabic),[3] => Array (
 => be,[name] => Беларуская,[english_name] => Belarusian)...#1 Piwik_LanguagesManager_API->getAvailableLanguageNames() called at [/home/nrfirth1/public_html/gotfirth/Piwik/plugins/LanguagesManager/LanguagesManager.php:56]#2 Piwik_LanguagesManager->showLanguagesSelector(Piwik_Event_Notification Object ([_notificationName] => TopMenu.add,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 2)) called at [(null):0]#3 call_user_func_array(Array ([0] => Piwik_LanguagesManager Object (),[1] => showLanguagesSelector), Array ([0] => Piwik_Event_Notification Object ([_notificationName] => TopMenu.add,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 2))) called at [/home/nrfirth1/public_html/gotfirth/Piwik/libs/Event/Dispatcher.php:284]#4 Event_Dispatcher->postNotification(Piwik_Event_Notification Object ([_notificationName] => TopMenu.add,[_notificationObject] => ,[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 2), 1, ) called at [/home/nrfirth1/public_html/gotfirth/Piwik/core/PluginsManager.php:531]#5 Piwik_PostEvent(TopMenu.add) called at [/home/nrfirth1/public_html/gotfirth/Piwik/core/Menu/Top.php:57]#6 Piwik_Menu_Top->get() called at [/home/nrfirth1/public_html/gotfirth/Piwik/core/Menu/Top.php:70]#7 Piwik_GetTopMenu() called at [/home/nrfirth1/public_html/gotfirth/Piwik/core/Controller.php:343]#8 Piwik_Controller->setBasicVariablesView(Piwik_View Object ([] => TranslationsAdmin/templates/manage.tpl,[] => Piwik_Smarty Object ([template_dir] => Array ([0] => /home/nrfirth1/public_html/gotfirth/Piwik/plugins,[1] => /home/nrfirth1/public_html/gotfirth/Piwik/themes/default,[2] => /home/nrfirth1/public_html/gotfirth/Piwik/themes),[compile_dir] => /home/nrfirth1/public_html/gotfirth/Piwik/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => /home/nrfirth1/public_html/gotfirth/Piwik/core/SmartyPlugins,[1] => /home/nrfirth1/public_html/gotfirth/Piwik/libs/Smarty/plugins),[debugging] => ,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => /home/nrfirth1/public_html/gotfirth/Piwik/tmp/cache,[cache_lifetime] => 3600,[cache_modified_check] => ,[php_handling] => 0,[security] => ,[secure_dir] => Array (),[security_settings] => Array ([PHP_HANDLING] => ,[IF_FUNCS] => Array ([0] => array,...#9 Piwik_Controller->setGeneralVariablesView(Piwik_View Object ([] => TranslationsAdmin/templates/manage.tpl,[] => Piwik_Smarty Object ([template_dir] => Array ([0] => /home/nrfirth1/public_html/gotfirth/Piwik/plugins,[1] => /home/nrfirth1/public_html/gotfirth/Piwik/themes/default,[2] => /home/nrfirth1/public_html/gotfirth/Piwik/themes),[compile_dir] => /home/nrfirth1/public_html/gotfirth/Piwik/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => /home/nrfirth1/public_html/gotfirth/Piwik/core/SmartyPlugins,[1] => /home/nrfirth1/public_html/gotfirth/Piwik/libs/Smarty/plugins),[debugging] => ,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => /home/nrfirth1/public_html/gotfirth/Piwik/tmp/cache,[cache_lifetime] => 3600,[cache_modified_check] => ,[php_handling] => 0,[security] => ,[secure_dir] => Array (),[security_settings] => Array ([PHP_HANDLING] => ,[IF_FUNCS] => Array ([0] => arra...#10 Piwik_TranslationsAdmin_Controller->index() called at [(null):0]#11 call_user_func_array(Array ([0] => Piwik_TranslationsAdmin_Controller Object ([] => TranslationsAdmin,[] => 2011-02-09,[] => Piwik_Date Object ([] => 1297286986,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => index), Array ()) called at [/home/nrfirth1/public_html/gotfirth/Piwik/core/FrontController.php:125]#12 Piwik_FrontController->dispatch() called at [/home/nrfirth1/public_html/gotfirth/Piwik/index.php:60]
matt [ # ]
February 10, 2011 10:11PM
Hi there is a bug maybe, can you try to create the file manually in piwik/langs/ ?

Then editing the file should work when using the Piwik Translate plugin. Please let us know if you have any problem not already reported in: [dev.piwik.org]



Cheers,
Matt
Piwik founder

Piwik FAQ - Piwik Help - before posting a new topic
Stay tuned on the Piwik Blog. You may follow me on twitter & on github

Sorry, only registered users may post in this forum.

Click here to login

Free Forum support is provided by the Piwik Community. If you require any urgent or professional help, contact Piwik Professional Services team!