ソースを参照

#141 added translation for tinyMCe and caldavzap

Come 7 年 前
コミット
d77d1c49b4

+ 219 - 0
tracim/tracim/public/assets/tinymce/js/tinymce/langs/fr_FR.js ファイルの表示

@@ -0,0 +1,219 @@
1
+tinymce.addI18n('fr_FR',{
2
+"Cut": "Couper",
3
+"Heading 5": "En-t\u00eate 5",
4
+"Header 2": "Titre 2",
5
+"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Votre navigateur ne supporte pas la copie directe. Merci d'utiliser les touches Ctrl+X\/C\/V.",
6
+"Heading 4": "En-t\u00eate 4",
7
+"Div": "Div",
8
+"Heading 2": "En-t\u00eate 2",
9
+"Paste": "Coller",
10
+"Close": "Fermer",
11
+"Font Family": "Police",
12
+"Pre": "Pre",
13
+"Align right": "Aligner \u00e0 droite",
14
+"New document": "Nouveau document",
15
+"Blockquote": "Citation",
16
+"Numbered list": "Num\u00e9rotation",
17
+"Heading 1": "En-t\u00eate 1",
18
+"Headings": "En-t\u00eates",
19
+"Increase indent": "Augmenter le retrait",
20
+"Formats": "Formats",
21
+"Headers": "Titres",
22
+"Select all": "Tout s\u00e9lectionner",
23
+"Header 3": "Titre 3",
24
+"Blocks": "Blocs",
25
+"Undo": "Annuler",
26
+"Strikethrough": "Barr\u00e9",
27
+"Bullet list": "Puces",
28
+"Header 1": "Titre 1",
29
+"Superscript": "Exposant",
30
+"Clear formatting": "Effacer la mise en forme",
31
+"Font Sizes": "Taille de police",
32
+"Subscript": "Indice",
33
+"Header 6": "Titre 6",
34
+"Redo": "R\u00e9tablir",
35
+"Paragraph": "Paragraphe",
36
+"Ok": "Ok",
37
+"Bold": "Gras",
38
+"Code": "Code",
39
+"Italic": "Italique",
40
+"Align center": "Centrer",
41
+"Header 5": "Titre 5",
42
+"Heading 6": "En-t\u00eate 6",
43
+"Heading 3": "En-t\u00eate 3",
44
+"Decrease indent": "Diminuer le retrait",
45
+"Header 4": "Titre 4",
46
+"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Le presse-papiers est maintenant en mode \"texte plein\". Les contenus seront coll\u00e9s sans retenir les formatages jusqu'\u00e0 ce que vous d\u00e9sactiviez cette option.",
47
+"Underline": "Soulign\u00e9",
48
+"Cancel": "Annuler",
49
+"Justify": "Justifier",
50
+"Inline": "En ligne",
51
+"Copy": "Copier",
52
+"Align left": "Aligner \u00e0 gauche",
53
+"Visual aids": "Aides visuelle",
54
+"Lower Greek": "Grec minuscule",
55
+"Square": "Carr\u00e9",
56
+"Default": "Par d\u00e9faut",
57
+"Lower Alpha": "Alpha minuscule",
58
+"Circle": "Cercle",
59
+"Disc": "Disque",
60
+"Upper Alpha": "Alpha majuscule",
61
+"Upper Roman": "Romain majuscule",
62
+"Lower Roman": "Romain minuscule",
63
+"Name": "Nom",
64
+"Anchor": "Ancre",
65
+"You have unsaved changes are you sure you want to navigate away?": "Vous avez des modifications non enregistr\u00e9es, \u00eates-vous s\u00fbr de quitter la page?",
66
+"Restore last draft": "Restaurer le dernier brouillon",
67
+"Special character": "Caract\u00e8res sp\u00e9ciaux",
68
+"Source code": "Code source",
69
+"B": "B",
70
+"R": "R",
71
+"G": "V",
72
+"Color": "Couleur",
73
+"Right to left": "Droite \u00e0 gauche",
74
+"Left to right": "Gauche \u00e0 droite",
75
+"Emoticons": "Emotic\u00f4nes",
76
+"Robots": "Robots",
77
+"Document properties": "Propri\u00e9t\u00e9 du document",
78
+"Title": "Titre",
79
+"Keywords": "Mots-cl\u00e9s",
80
+"Encoding": "Encodage",
81
+"Description": "Description",
82
+"Author": "Auteur",
83
+"Fullscreen": "Plein \u00e9cran",
84
+"Horizontal line": "Ligne horizontale",
85
+"Horizontal space": "Espacement horizontal",
86
+"Insert\/edit image": "Ins\u00e9rer\/modifier une image",
87
+"General": "G\u00e9n\u00e9ral",
88
+"Advanced": "Avanc\u00e9",
89
+"Source": "Source",
90
+"Border": "Bordure",
91
+"Constrain proportions": "Conserver les proportions",
92
+"Vertical space": "Espacement vertical",
93
+"Image description": "Description de l'image",
94
+"Style": "Style",
95
+"Dimensions": "Dimensions",
96
+"Insert image": "Ins\u00e9rer une image",
97
+"Zoom in": "Zoomer",
98
+"Contrast": "Contraste",
99
+"Back": "Retour",
100
+"Gamma": "Gamma",
101
+"Flip horizontally": "Retournement horizontal",
102
+"Resize": "Redimensionner",
103
+"Sharpen": "Affiner",
104
+"Zoom out": "D\u00e9zoomer",
105
+"Image options": "Options de l'image",
106
+"Apply": "Appliquer",
107
+"Brightness": "Luminosit\u00e9",
108
+"Rotate clockwise": "Rotation horaire",
109
+"Rotate counterclockwise": "Rotation anti-horaire",
110
+"Edit image": "Modifier l'image",
111
+"Color levels": "Niveaux de couleur",
112
+"Crop": "Rogner",
113
+"Orientation": "Orientation",
114
+"Flip vertically": "Retournement vertical",
115
+"Invert": "Inverser",
116
+"Insert date\/time": "Ins\u00e9rer date\/heure",
117
+"Remove link": "Enlever le lien",
118
+"Url": "Url",
119
+"Text to display": "Texte \u00e0 afficher",
120
+"Anchors": "Ancres",
121
+"Insert link": "Ins\u00e9rer un lien",
122
+"New window": "Nouvelle fen\u00eatre",
123
+"None": "n\/a",
124
+"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "L'URL que vous avez entr\u00e9e semble \u00eatre un lien externe. Voulez-vous ajouter le pr\u00e9fixe http:\/\/ n\u00e9cessaire?",
125
+"Target": "Cible",
126
+"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "L'URL que vous avez entr\u00e9e semble \u00eatre une adresse e-mail. Voulez-vous ajouter le pr\u00e9fixe mailto: n\u00e9cessaire?",
127
+"Insert\/edit link": "Ins\u00e9rer\/modifier un lien",
128
+"Insert\/edit video": "Ins\u00e9rer\/modifier une vid\u00e9o",
129
+"Poster": "Publier",
130
+"Alternative source": "Source alternative",
131
+"Paste your embed code below:": "Collez votre code d'int\u00e9gration ci-dessous :",
132
+"Insert video": "Ins\u00e9rer une vid\u00e9o",
133
+"Embed": "Int\u00e9grer",
134
+"Nonbreaking space": "Espace ins\u00e9cable",
135
+"Page break": "Saut de page",
136
+"Paste as text": "Coller comme texte",
137
+"Preview": "Pr\u00e9visualiser",
138
+"Print": "Imprimer",
139
+"Save": "Enregistrer",
140
+"Could not find the specified string.": "Impossible de trouver la cha\u00eene sp\u00e9cifi\u00e9e.",
141
+"Replace": "Remplacer",
142
+"Next": "Suiv",
143
+"Whole words": "Mots entiers",
144
+"Find and replace": "Trouver et remplacer",
145
+"Replace with": "Remplacer par",
146
+"Find": "Chercher",
147
+"Replace all": "Tout remplacer",
148
+"Match case": "Respecter la casse",
149
+"Prev": "Pr\u00e9c ",
150
+"Spellcheck": "V\u00e9rification orthographique",
151
+"Finish": "Finie",
152
+"Ignore all": "Tout ignorer",
153
+"Ignore": "Ignorer",
154
+"Add to Dictionary": "Ajouter au dictionnaire",
155
+"Insert row before": "Ins\u00e9rer une ligne avant",
156
+"Rows": "Lignes",
157
+"Height": "Hauteur",
158
+"Paste row after": "Coller la ligne apr\u00e8s",
159
+"Alignment": "Alignement",
160
+"Border color": "Couleur de la bordure",
161
+"Column group": "Groupe de colonnes",
162
+"Row": "Ligne",
163
+"Insert column before": "Ins\u00e9rer une colonne avant",
164
+"Split cell": "Diviser la cellule",
165
+"Cell padding": "Espacement interne cellule",
166
+"Cell spacing": "Espacement inter-cellulles",
167
+"Row type": "Type de ligne",
168
+"Insert table": "Ins\u00e9rer un tableau",
169
+"Body": "Corps",
170
+"Caption": "Titre",
171
+"Footer": "Pied",
172
+"Delete row": "Effacer la ligne",
173
+"Paste row before": "Coller la ligne avant",
174
+"Scope": "Etendue",
175
+"Delete table": "Supprimer le tableau",
176
+"H Align": "Alignement H",
177
+"Top": "Haut",
178
+"Header cell": "Cellule d'en-t\u00eate",
179
+"Column": "Colonne",
180
+"Row group": "Groupe de lignes",
181
+"Cell": "Cellule",
182
+"Middle": "Milieu",
183
+"Cell type": "Type de cellule",
184
+"Copy row": "Copier la ligne",
185
+"Row properties": "Propri\u00e9t\u00e9s de la ligne",
186
+"Table properties": "Propri\u00e9t\u00e9s du tableau",
187
+"Bottom": "Bas",
188
+"V Align": "Alignement V",
189
+"Header": "En-t\u00eate",
190
+"Right": "Droite",
191
+"Insert column after": "Ins\u00e9rer une colonne apr\u00e8s",
192
+"Cols": "Colonnes",
193
+"Insert row after": "Ins\u00e9rer une ligne apr\u00e8s",
194
+"Width": "Largeur",
195
+"Cell properties": "Propri\u00e9t\u00e9s de la cellule",
196
+"Left": "Gauche",
197
+"Cut row": "Couper la ligne",
198
+"Delete column": "Effacer la colonne",
199
+"Center": "Centr\u00e9",
200
+"Merge cells": "Fusionner les cellules",
201
+"Insert template": "Ajouter un th\u00e8me",
202
+"Templates": "Th\u00e8mes",
203
+"Background color": "Couleur d'arri\u00e8re-plan",
204
+"Custom...": "Personnalis\u00e9...",
205
+"Custom color": "Couleur personnalis\u00e9e",
206
+"No color": "Aucune couleur",
207
+"Text color": "Couleur du texte",
208
+"Show blocks": "Afficher les blocs",
209
+"Show invisible characters": "Afficher les caract\u00e8res invisibles",
210
+"Words: {0}": "Mots : {0}",
211
+"Insert": "Ins\u00e9rer",
212
+"File": "Fichier",
213
+"Edit": "Editer",
214
+"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "Zone Texte Riche. Appuyer sur ALT-F9 pour le menu. Appuyer sur ALT-F10 pour la barre d'outils. Appuyer sur ALT-0 pour de l'aide.",
215
+"Tools": "Outils",
216
+"View": "Voir",
217
+"Table": "Tableau",
218
+"Format": "Format"
219
+});

+ 2 - 2
tracim/tracim/templates/calendar/config.mak ファイルの表示

@@ -43,8 +43,8 @@ var globalBackgroundSync=true;
43 43
 var globalSyncResourcesInterval=120000;
44 44
 var globalEnableRefresh=false;
45 45
 var globalEnableKbNavigation=true;
46
-var globalInterfaceLanguage='en_US';
47
-var globalInterfaceCustomLanguages=[];
46
+var globalInterfaceLanguage=window.parent.globalTracimLang; // globalTracimLang is declared in tracim header (caldavzap in in an iframe)
47
+var globalInterfaceCustomLanguages=['en_US', 'fr_FR'];
48 48
 var globalSortAlphabet=' 0123456789'+
49 49
     'AÀÁÂÄÆÃÅĀBCÇĆČDĎEÈÉÊËĒĖĘĚFGĞHIÌÍÎİÏĪĮJKLŁĹĽMNŃÑŇOÒÓÔÖŐŒØÕŌ'+
50 50
     'PQRŔŘSŚŠȘșŞşẞTŤȚțŢţUÙÚÛÜŰŮŪVWXYÝŸZŹŻŽ'+

+ 3 - 0
tracim/tracim/templates/master_anonymous.mak ファイルの表示

@@ -13,6 +13,9 @@
13 13
         <link href="${tg.url('/assets/css/bootstrap.min.css')}" rel="stylesheet">
14 14
         <link href="${tg.url('/assets/css/dashboard.css')}" rel="stylesheet">
15 15
         <link href="${tg.url('/assets/font-awesome-4.2.0/css/font-awesome.css')}" rel="stylesheet">
16
+        <script>
17
+          globalTracimLang = 'fr_FR'
18
+        </script>
16 19
     </head>
17 20
 
18 21
     <body class="${self.body_class()}" style="

+ 2 - 0
tracim/tracim/templates/master_authenticated.mak ファイルの表示

@@ -20,6 +20,8 @@
20 20
             var shiftWindow = function() { scrollBy(0, -50) };
21 21
             window.addEventListener("hashchange", shiftWindow);
22 22
             function load() { if (window.location.hash) shiftWindow(); }
23
+
24
+            globalTracimLang = 'fr_FR'
23 25
         </script>
24 26
     </head>
25 27
 

+ 10 - 6
tracim/tracim/templates/master_no_toolbar_no_login.mak ファイルの表示

@@ -27,6 +27,10 @@
27 27
             <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
28 28
             <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
29 29
         <![endif]-->
30
+
31
+        <script>
32
+          globalTracimLang = 'fr_FR'
33
+        </script>
30 34
     </head>
31 35
 
32 36
     <body class="${self.body_class()}">
@@ -78,7 +82,7 @@
78 82
     <div class="footer hidden-tablet hidden-phone text-center">
79 83
         <p class="pod-blue">
80 84
             <i>pod &mdash; ${_("collaborate today, capitalize for tomorrow")}</i>
81
-            
85
+
82 86
         </p>
83 87
         <hr style="width: 50%; margin: 0.5em auto;"/>
84 88
         <p>Copyright &copy; 2013 - ${h.current_year()} pod project.</p>
@@ -116,10 +120,10 @@
116 120
                     </li>
117 121
 
118 122
                     <li class="dropdown">
119
-                      
120
-                      
121
-                      
122
-                      
123
+
124
+
125
+
126
+
123 127
                       <a href="#" class="dropdown-toggle" data-toggle="dropdown">${TIM.ICO(16, 'categories/applications-system')} Debug <b class="caret"></b></a>
124 128
                       <ul class="dropdown-menu">
125 129
                         <li><a href="${tg.url('/debug/environ')}">${TIM.ICO(16, 'apps/internet-web-browser')} request.environ</a></li>
@@ -164,7 +168,7 @@
164 168
                         </ul>
165 169
                     </li>
166 170
                 </ul>
167
-                
171
+
168 172
                 <form class="navbar-form navbar-right" action="${tg.url('/search')}">
169 173
                     <input type="text" name="keywords" class="form-control" placeholder="${_('Search...')}" value="${context.get('search_string', '')}">
170 174
                     <button type="submit" class="btn btn-default">

+ 2 - 1
tracim/tracim/templates/pod.mak ファイルの表示

@@ -56,7 +56,7 @@
56 56
             menubar:false,
57 57
             statusbar:true,
58 58
             plugins: [ "table", "image", "charmap", "fullscreen", "autolink", "colorpicker" ],
59
-
59
+            language: globalTracimLang === 'en_US' ? 'en' : globalTracimLang, // tinymce does't accept en_US as language, it is its default value named 'en'
60 60
             skin : 'tracim',
61 61
             selector:'${selector}',
62 62
             toolbar: [
@@ -82,6 +82,7 @@
82 82
               // add custom btn to handle image by selecting them with system explorer
83 83
               $editor.addButton('customInsertImage', {
84 84
                 icon: 'mce-ico mce-i-image',
85
+                title: 'Image',
85 86
                 onclick: function () {
86 87
                   if ($('#hidden_tinymce_fileinput').length > 0) $('#hidden_tinymce_fileinput').remove()
87 88