Subject: Developers of Sympa
List archive
Re: [sympa-developpers] [sympa-commits] sympa[8124] branches/sympa-6.2-branch: [*feature] Per-language css. tt2 will override any portion of main css, not fully
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-developpers] [sympa-commits] sympa[8124] branches/sympa-6.2-branch: [*feature] Per-language css. tt2 will override any portion of main css, not fully
- Date: Tue, 11 Dec 2012 10:51:43 +0100
Great feature for i18n,
Soji, As we speak about it: I understood, aa long time ago, that a properly localized application was supposed to adapt its layout to the selected languages. Souldn't we, for example, switch places between side menus and main panel in the web interface? Cheers, David Le 07/12/12 20:18, address@concealed
a écrit :
sympa[8124] branches/sympa-6.2-branch: [*feature]
Per-language css.tt2 will override any portion of main css, not
fully
Log Message[*feature] Per-language css.tt2 will override any portion of main css, not fully replacing it. So they may be used for locale-specific customization. Background: Default css.tt2 specifies the font families covering Western scripts (Latin, Cyrilic, ...). East Asian users may prefer consistent font family supporting Western along with Eastern scripts (Han, Hangul, ...). Modified Paths
Added Paths
DiffModified: branches/sympa-6.2-branch/web_tt2/Makefile.am (8123 => 8124)
--- branches/sympa-6.2-branch/web_tt2/Makefile.am 2012-12-07 14:50:24 UTC (rev 8123)
+++ branches/sympa-6.2-branch/web_tt2/Makefile.am 2012-12-07 19:18:15 UTC (rev 8124)
@@ -162,9 +162,17 @@
view_template.tt2 \
your_lists.tt2
Modified: branches/sympa-6.2-branch/web_tt2/crash.tt2 (8123 => 8124)
--- branches/sympa-6.2-branch/web_tt2/crash.tt2 2012-12-07 14:50:24 UTC (rev 8123)
+++ branches/sympa-6.2-branch/web_tt2/crash.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -8,17 +8,21 @@
<title> [% main_title %] - [% action %] </title>
Modified: branches/sympa-6.2-branch/web_tt2/css.tt2 (8123 => 8124)
--- branches/sympa-6.2-branch/web_tt2/css.tt2 2012-12-07 14:50:24 UTC (rev 8123)
+++ branches/sympa-6.2-branch/web_tt2/css.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -1,12 +1,4 @@
Added: branches/sympa-6.2-branch/web_tt2/ja_JP/css.tt2 (0 => 8124)
--- branches/sympa-6.2-branch/web_tt2/ja_JP/css.tt2 (rev 0)
+++ branches/sympa-6.2-branch/web_tt2/ja_JP/css.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -0,0 +1,9 @@
+[%# $Id: $ %]
+<!-- begin ja_JP/css.tt2 -->
+<style type="text/css">
+@media screen { }
+* {
+ font-family:"ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", TakaoPGothic, "IPAexゴシック", IPAexGothic, "IPA Pゴシック", IPAPGothic, "VL Pゴシック", "VL PGothic", sans-serif;
+}
+</style>
+<!-- end ja_JP/css.tt2 -->
Added: branches/sympa-6.2-branch/web_tt2/ko_KR/css.tt2 (0 => 8124)
--- branches/sympa-6.2-branch/web_tt2/ko_KR/css.tt2 (rev 0)
+++ branches/sympa-6.2-branch/web_tt2/ko_KR/css.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -0,0 +1,9 @@
+[%# $Id: $ %]
+<!-- begin ko_KR/css.tt2 -->
+<style type="text/css">
+@media screen { }
+* {
+ font-family:AppleGothic, "맑은 고딕", "Malgun Gothic", "백묵 굴림", "Baekmuk Gulim", sans-serif;
+}
+</style>
+<!-- end ko_KR/css.tt2 -->
Modified: branches/sympa-6.2-branch/web_tt2/main.tt2 (8123 => 8124)
--- branches/sympa-6.2-branch/web_tt2/main.tt2 2012-12-07 14:50:24 UTC (rev 8123)
+++ branches/sympa-6.2-branch/web_tt2/main.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -8,20 +8,21 @@
<title> [% main_title %] - [% action %] </title>
Added: branches/sympa-6.2-branch/web_tt2/zh_CN/css.tt2 (0 => 8124)
--- branches/sympa-6.2-branch/web_tt2/zh_CN/css.tt2 (rev 0)
+++ branches/sympa-6.2-branch/web_tt2/zh_CN/css.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -0,0 +1,9 @@
+[%# $Id: $ %]
+<!-- begin zh_CN/css.tt2 -->
+<style type="text/css">
+@media screen { }
+* {
+ font-family:"儷黑 Pro", "LiHei Pro", "华文黑体", STHeiti, "微软雅黑", "Microsoft YaHei", "MS Hei", SimHei, sans-serif;
+}
+</style>
+<!-- end zh_CN/css.tt2 -->
Added: branches/sympa-6.2-branch/web_tt2/zh_TW/css.tt2 (0 => 8124)
--- branches/sympa-6.2-branch/web_tt2/zh_TW/css.tt2 (rev 0)
+++ branches/sympa-6.2-branch/web_tt2/zh_TW/css.tt2 2012-12-07 19:18:15 UTC (rev 8124)
@@ -0,0 +1,9 @@
+[%# $Id: $ %]
+<!-- begin zh_TW/css.tt2 -->
+<style type="text/css">
+@media screen { }
+* {
+ font-family:"儷黑 Pro", "LiHei Pro", "Apple LiGothic", "微軟正黑體", "Microsoft JhengHei", sans-serif;
+}
+</style>
+<!-- end zh_TW/css.tt2 -->
Modified: branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in (8123 => 8124)
--- branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in 2012-12-07 14:50:24 UTC (rev 8123)
+++ branches/sympa-6.2-branch/wwsympa/wwsympa.fcgi.in 2012-12-07 19:18:15 UTC (rev 8124)
@@ -6298,11 +6298,14 @@
if(($in{'editcolors'})&&($in{'subaction'} eq 'test')){
+ ## Do not include language subdirectories.
+ ## The css.tt2 by each languages will override styles in main CSS.
+ my $tt2_include_path = $robot->make_tt2_include_path('web_tt2');
+
return unless ($in{'custom_color_number'} =~ /color_/);
$param->{'custom_color_number'} = $in{'custom_color_number'};
$param->{'custom_color_value'} = $in{'custom_color_value'};
|
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
- Re: [sympa-developpers] [sympa-commits] sympa[8124] branches/sympa-6.2-branch: [*feature] Per-language css. tt2 will override any portion of main css, not fully, David Verdin, 12/11/2012
Archive powered by MHonArc 2.6.19+.