@mattab opened this Issue on May 18th 2009 Owner

We are hoping for Piwik to be platform that every user can use in their own language. We support translations for all elements: calendar, graphs, reports, admin interface, etc.

Currently the support for right to left language hasn't be tested and used yet. We would need to contact an arab or hebrew translator, then define what issues to fix in the UI.

For example we may have to add conditional css style that will overload text classes/ids: direction: rtl, text-align: right (when original is left), add definition in translation file indicating what type of language we load (rtl,ltr).

@anonymous-piwik-user commented on October 23rd 2010

Attachment: Arabic Translation
ar.php

@mattab commented on March 29th 2010 Owner

Moving to post 1.0 until we find translators for RTL languages. If we do, we would definitely do it for 1.0!

@anonymous-piwik-user commented on October 23rd 2010

Hi,

Just wanted to contribute the Arabic Translation for Piwik 1.0 it is not 100% but did my best to and hope to see it in the next patch/version with RTL support to ensure having more community contribution to reach the 100%

BR,
Mohamad Sibai

@robocoder commented on February 9th 2011 Contributor

Potential blocker: http://bugs.jqueryui.com/ticket/5538

As a first step, we should define:

  • lang/en.php: 'General_LayoutDirection' => 'LTR', // or 'RTL'; "" or undefined is the same as 'LTR'
  • themes/default/common-rtl.css: add a stub file
  • when loading stylesheets (in templates or assetmanager), see if a basename-rtl.css file exists, and also include that
@anonymous-piwik-user commented on February 10th 2011

#2074
how to change title and body to rtl for all blocks?

@robocoder commented on February 10th 2011 Contributor

Note to self:

  • CSSJanus - flip css ftom left to right
    • MediaWiki has a php port of the above python code
@robocoder commented on February 10th 2011 Contributor

Changing the language shouldn't require rebuilding the merged css asset or recompiling Smarty templates.

This appears to imply:

  • conditional loading of rtl css in the templates
  • a separate merged rtl css asset
@robocoder commented on February 10th 2011 Contributor

Where the translation is incomplete, the layout is going to look messed up (defaults to the English text).

@mattab commented on February 10th 2011 Owner

vipsoft, I thought the RTL CSS could work being conditionnaly loaded after all CSS, and overriding some values. So the merged CSS would stay the same, and there would be one more request for the RTL.css.

Where the translation is incomplete, the layout is going to look messed up (defaults to the English text).
what do you mean?

@anonymous-piwik-user commented on February 10th 2011

When i am translate en.php to fa.php (farsi or persian) my theme not worked.

@anonymous-piwik-user commented on February 11th 2011

When i am translate en.php to fa.php (farsi or persian) my theme not worked.

@robocoder commented on February 11th 2011 Contributor

(In [3867]) refs #733 - reviewing the styles embedded in .tpl files

@mattab commented on April 13th 2011 Owner

(In [4431]) Refs #733

  • adding stub themes/default/rtl.css file loaded when the language is RTL (currently loaded for Arabic and Hebrew)
  • this stub file will be used to overwrite CSS properties to set text-align:right float:right etc. for all elements requiring to be aligned differently
  • Following screens use the RTL: Login, Admin screens, main dashboard reports, Update screen & Installation screens
@mattab commented on October 1st 2012 Owner

Increasing priority: it would be nice to investigate having at least a basic rtl.css which would display the dashboard from right to left.

@mattab commented on February 1st 2014 Owner

Consolidating milestones FTW

@shahar3012 commented on February 21st 2015

Hi,
My native language is Hebrew.
I'll add support for RTL languages in site theme (css).
If you have some major points I should look at in order to understand everything that need to be supported, I would appreciate it if you let me know.

Also, I'll try to add translation in Hebrew for all core plugins.

@sgiehl commented on February 21st 2015 Member

Regarding translations: Please register at http://translations.piwik.org to help improving the translations.

Powered by GitHub Issue Mirror