@anonymous-piwik-user opened this Issue on March 10th 2009

Add a new method to languagesManager to provide all string of a language.

@anonymous-piwik-user commented on March 16th 2009

Attachment: Rename method to getTranslationsForLanguage()

@anonymous-piwik-user commented on March 16th 2009

Attachment: I create a test case, but I don't know if it's correct

@robocoder commented on March 10th 2009 Contributor

What's the use case?

A plugin should already be able to access all the strings stored in the $translations array.

@anonymous-piwik-user commented on March 11th 2009

Yes, I'm sorry, I wasn't clear enough.

I would like to have access all the strings from API via the LanguagesManager Module.

For example, call API LanguagesManager.getAvailableLanguageString(languageCode)
and it will return all the strings of the language (in xml, ....).

All that, to reuse the translators's works in other projects (in my case DWA application [http://www.desktop-web-analytics.com]).


@anonymous-piwik-user commented on March 12th 2009

I just add the new method and send the file in attachment.

@robocoder commented on March 13th 2009 Contributor

Can you add a test case (tests/core/LanguagesManager.test.php doesn't yet exist) at least for the new method you created, and rename the method as: getTranslationsForLanguage() ?

@mattab commented on March 23rd 2009 Owner

(In [1001]) - fixed #597 Add new method to languagesManager to show all string of a language
ps: renamed from getTranslationsForLanguages to getTranslationsForLanguage
patch by benoit pouzet

This Issue was closed on March 23rd 2009
Powered by GitHub Issue Mirror