Changeset 541
- Timestamp:
- 2007-05-19 20:41:43 (2 years ago)
- Files:
-
- trunk/app/controllers/application.rb (modified) (5 diffs)
- trunk/app/controllers/nodes_controller.rb (modified) (4 diffs)
- trunk/app/models/comment.rb (modified) (1 diff)
- trunk/app/models/node.rb (modified) (1 diff)
- trunk/app/models/template.rb (modified) (1 diff)
- trunk/app/models/template_content.rb (modified) (1 diff)
- trunk/app/views/discussions/_form.rhtml (modified) (1 diff)
- trunk/app/views/versions/edit.rhtml (modified) (1 diff)
- trunk/db/init/base/skins/default/Node.html (modified) (1 diff)
- trunk/db/init/base/skins/default/Project.html (modified) (1 diff)
- trunk/db/init/base/skins/default/layout.html (modified) (2 diffs)
- trunk/db/init/base/skins/default/title.html (added)
- trunk/lib/gettext_strings.rb (modified) (1 diff)
- trunk/lib/parser/lib/parser.rb (modified) (4 diffs)
- trunk/lib/parser/lib/rules/code_syntax.rb (modified) (1 diff)
- trunk/lib/parser/lib/rules/zafu.rb (modified) (1 diff)
- trunk/lib/parser/lib/rules/zena.rb (modified) (1 diff)
- trunk/lib/parser/test/parser_test.rb (modified) (1 diff)
- trunk/lib/parser/test/zafu.yml (modified) (3 diffs)
- trunk/locale/en/LC_MESSAGES/zena.mo (modified) (previous)
- trunk/locale/fr/LC_MESSAGES/zena.mo (modified) (previous)
- trunk/po/en/zena.po (modified) (7 diffs)
- trunk/po/fr/zena.po (modified) (9 diffs)
- trunk/po/zena.pot (modified) (7 diffs)
- trunk/test/integration/navigation_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/application.rb
r537 r541 181 181 end 182 182 @skin_names = [@skin_name, @skin.keys].flatten.uniq 183 184 183 @expire_with_ids = [] 185 184 … … 204 203 # tested in MainControllerTest 205 204 def get_template_text(opts) 206 return nil unless doc = find_template_document(opts) 205 return nil unless res = find_template_document(opts) 206 doc, url = *res 207 207 @expire_with_ids << doc[:id] 208 209 208 # FIXME: implement a link to set/remove 'dev' mode. 210 209 # session[:dev] ? doc.version.text : doc.version(:pub).text 211 doc.version.text210 return doc.version.text, url 212 211 end 213 212 214 213 # TODO: implement 215 214 def template_url_for_asset(opts) 216 return nil unless asset = find_template_document(opts)215 return nil unless asset = (find_template_document(opts) || [])[0] 217 216 if asset.public? && !current_site.authentication? 218 217 # force the use of a cacheable path for the data, even when navigating in '/oo' … … 243 242 skin_names << url.shift if url.size > 1 244 243 end 245 document = nil244 document = skin_name = nil 246 245 247 246 skin_names.uniq.each do |skin_name| … … 253 252 break if document = secure(TextDocument) { TextDocument.find_by_path(path) } rescue nil 254 253 end 255 document254 return document ? [document, ([skin_name] + url).join('/')] : nil 256 255 end 257 256 … … 303 302 # Choose best language to display content. 304 303 # 1. 'test.host/oo?lang=en' use 'lang', redirect without lang 305 # 2. 'test.host/oo' use session[:lang] , do not redirect306 # 3. 'test.host/fr' use the request prefix , do not redirect304 # 2. 'test.host/oo' use session[:lang] 305 # 3. 'test.host/fr' use the request prefix 307 306 # 4. 'test.host/' use current session lang if any 308 307 # 5. 'test.host/' use HTTP_ACCEPT_LANGUAGE 309 308 # 6. 'test.host/' use default language 310 309 def set_lang 311 new_lang = nil 312 if params[:lang] 313 new_lang = params[:lang] 314 elsif params[:prefix] == AUTHENTICATED_PREFIX 315 session[:lang] ||= visitor.lang # ok 316 elsif current_site.lang_list.include?(params[:prefix]) 317 session[:lang] = params[:prefix] # ok 318 elsif session[:lang] 319 new_lang = session[:lang] 320 elsif choices = request.headers['HTTP_ACCEPT_LANGUAGE'] 321 choices = choices.split(',').sort {|a,b| (b.split(';q=')[1] || 1.0).to_f <=> (a.split(';q=')[1] || 1.0).to_f} 322 choices.each do |l| 323 l = l.split(';')[0].split('-')[0] 324 if current_site.lang_list.include?(l) 325 new_lang = l 326 break 327 end 328 end 329 new_lang ||= current_site[:default_lang] 330 else 331 new_lang = current_site[:default_lang] 332 end 333 334 if new_lang 335 if current_site.lang_list.include?(new_lang) 336 session[:lang] = new_lang 337 else 338 flash[:notice] = _("The requested language is not available.") 339 session[:lang] = current_site.lang_list.include?(request.headers['HTTP_ACCEPT_LANGUAGE']) ? request.headers['HTTP_ACCEPT_LANGUAGE'] : current_site[:default_lang] 340 end 341 342 # path is only used by nodes controller's show action 343 if (params[:controller] == 'nodes' && ['index', 'show'].include?(params[:action])) || params[:lang] 344 req = request.parameters 345 req.delete(:lang) 346 req[:prefix] = req[:prefix] ? (visitor.is_anon? ? session[:lang] : AUTHENTICATED_PREFIX) : nil 347 redirect_to req and return false 348 end 349 end 310 [ 311 params[:lang], 312 params[:prefix] == AUTHENTICATED_PREFIX ? nil : params[:prefix], 313 session[:lang], 314 (request.headers['HTTP_ACCEPT_LANGUAGE'] || '').split(',').sort {|a,b| (b.split(';q=')[1] || 1.0).to_f <=> (a.split(';q=')[1] || 1.0).to_f }.map {|l| l.split(';')[0].split('-')[0] } 315 ].compact.flatten.uniq.each do |l| 316 if current_site.lang_list.include?(l) 317 session[:lang] = l 318 break 319 end 320 end 321 322 session[:lang] ||= current_site[:default_lang] 350 323 351 324 visitor.lang = session[:lang] # FIXME: this should not be needed, use global GetText.get_locale... trunk/app/controllers/nodes_controller.rb
r540 r541 19 19 =end 20 20 class NodesController < ApplicationController 21 before_filter :clean_url, :only => [:index, :show] 21 22 before_filter :find_node, :except => [:index, :not_found, :search, :attribute] 22 23 layout :popup_layout, :only => [:edit ] … … 190 191 191 192 respond_to do |format| 192 format.html { redirect_to edit_version_url(:node_id => @node[:zip], :id=>(@node.v_number || 0)) } 193 format.html do 194 if params[:edit] == 'popup' 195 redirect_to edit_version_url(:node_id => @node[:zip], :id=>(@node.v_number || 0)) 196 else 197 redirect_to zen_path(@node) 198 end 199 end 193 200 format.js { @flash = flash } 194 201 end … … 312 319 313 320 protected 321 # Make sure the url is correct. Redirect if necessary. 322 def clean_url 323 case params[:action] 324 when 'index' 325 redirect_url = "/#{prefix}" if params[:prefix] != prefix || params[:lang] 326 when 'show' 327 redirect_url = if !params[:path] || params[:prefix] != prefix || params[:lang] 328 if params[:id] 329 zen_path(secure(Node) { Node.find_by_zip(params[:id]) }) 330 else 331 request.parameters.merge(:prefix => prefix).delete(:lang) 332 end 333 end 334 end 335 336 if redirect_url 337 redirect_to redirect_url 338 return false 339 end 340 end 341 342 343 314 344 def find_node 315 345 if path = params[:path] … … 329 359 if params[:format] == '' || (params[:format] == 'html' && ( (zip != '' && @node.custom_base) || basepath != @node.basepath(true))) 330 360 redirect_to zen_path(@node, :mode => params[:mode]) 361 elsif params[:mode] =~ /_edit/ && !@node.can_write? 362 redirect_to zen_path(@node) 331 363 end 332 364 elsif params[:id] trunk/app/models/comment.rb
r513 r541 4 4 belong to the user _anon_ (see #User) and must have the 'athor_name' field set. 5 5 6 If ZENA_ENV[:moderate_anonymous_comments] is set, all public comments are set to 'prop' and are not directly seen on the site.6 If anonymous is moderated (User#moderated?), all public comments are set to 'prop' and are not directly seen on the site. 7 7 =end 8 8 class Comment < ActiveRecord::Base trunk/app/models/node.rb
r530 r541 462 462 # Same as fullpath, but the path includes the root node. 463 463 def rootpath 464 ZENA_ENV[:site_name]+ (fullpath != "" ? "/#{fullpath}" : "")464 visitor.site.name + (fullpath != "" ? "/#{fullpath}" : "") 465 465 end 466 466 trunk/app/models/template.rb
r478 r541 26 26 end 27 27 28 # Find the29 # TODO: test30 def sweep_cache31 super32 if self.kind_of?(Skin)33 tmpl = "#{name}/any"34 else35 tmpl = "#{parent(:secure=>false)[:name]}/#{name}"36 end37 ZENA_ENV[:languages].each do |lang|38 filepath = File.join(RAILS_ROOT,'app', 'views', 'templates', 'compiled')39 filepath = "#{filepath}/#{tmpl}_#{lang}.rhtml"40 if File.exist?(filepath)41 File.delete(filepath)42 end43 end44 end45 46 28 private 47 29 trunk/app/models/template_content.rb
r537 r541 42 42 self[:skin_name] = node.section.name 43 43 self[:mode] = nil if self[:mode] == '' 44 self[:klass] = nil if self[:klass] == '' 44 45 end 45 46 trunk/app/views/discussions/_form.rhtml
r512 r541 12 12 </div> 13 13 <div class='lang'> 14 <%= select('discussion', 'lang', ZENA_ENV[:languages]) %>14 <%= select('discussion', 'lang', visitor.site.lang_list) %> 15 15 </div> 16 16 <div class='action'> trunk/app/views/versions/edit.rhtml
r517 r541 8 8 <div class='tab'> 9 9 <% form_tag( node_path(@node[:zip]), :method => :put, :multipart => @node.kind_of?(Document), :id => 'node_form') do -%> 10 <%= hidden_field 'node', 'v_lang', :value=>@node.v_lang %> 10 <div class='hidden'> 11 <%= hidden_field 'node', 'v_lang', :value=>@node.v_lang %> 12 <input type='hidden' name='edit' value='popup'/> 13 </div> 11 14 <div class='validate'> 12 15 <div><input type="submit" onclick="$('loader').style.visibility = 'visible';" value='<%= _('validate') %>'/></div> trunk/db/init/base/skins/default/Node.html
r540 r541 15 15 </r:with> 16 16 <r:with part='body/container/content/main'> 17 <div class='header'> 18 <h1 do='title' class='s30' status='true' actions='all'>this is the title</h1> 19 <div class='subtitle'> 20 <r:case> 21 <r:when test='[user_id] == [v_user_id]'> 22 <r:trans>posted by</r:trans> <b do='author' do='show' attr='fullname'>Super Man</b> 23 </r:when> 24 <r:else> 25 <r:trans>original by</r:trans> <b do='show' attr='fullname'>Platon</b> 26 <r:trans>modified by</r:trans> <b do='version' do='author' do='show' attr='fullname'>Socrate</b> 27 </r:else> 28 </r:case> 29 </div> 30 </div> 17 <r:include template='title.html'/> 31 18 32 19 <r:summary text=''/> trunk/db/init/base/skins/default/Project.html
r540 r541 13 13 14 14 <r:home> 15 <div class='header'> 16 <h1 do='title' class='s30' status='true' actions='all'>this is the title</h1> 17 <div class='subtitle'> 18 <r:case> 19 <r:when test='[user_id] == [v_user_id]'> 20 <r:trans>posted by</r:trans> <b do='author' do='show' attr='fullname'>Super Man</b> 21 </r:when> 22 <r:else> 23 <r:trans>original by</r:trans> <b do='show' attr='fullname'>Platon</b> 24 <r:trans>modified by</r:trans> <b do='version' do='author' do='show' attr='fullname'>Socrate</b> 25 </r:else> 26 </r:case> 27 </div> 28 </div> 29 15 <r:include template='title.html'/> 30 16 <r:summary text=''/> 31 17 <r:text/> 32 18 <r:else> 33 < h1 do='title' class='s30' status='true' actions='all'>this is the title</h1>19 <r:include template='title.html'/> 34 20 </r:else> 35 21 </r:home> trunk/db/init/base/skins/default/layout.html
r540 r541 26 26 </div> 27 27 28 <div id='nav_menu' do=' node' name='menu' select='root'>29 <ul do=' pages'>28 <div id='nav_menu' do='void' name='menu'> 29 <ul do='root' do='pages'> 30 30 <li do='each'><r:link attr='name'/> 31 31 <ul do='pages'> … … 35 35 </ul> 36 36 </div> 37 <div id='branding' do='link' name='branding' href='root'><img src='/img/logo.png' width='220' height='100'/></div> 37 <r:void name='branding'> 38 <div id='branding' do='root' do='link' href='root'><r:icon><r:img mode='full'/><r:else><img src='/img/logo.png' width='220' height='100' alt='logo'/></r:else></r:icon></div> 39 </r:void> 38 40 </div> 39 41 trunk/lib/gettext_strings.rb
r532 r541 63 63 64 64 N_('no result found') # search template 65 N_('search results') # search template 65 66 66 67 N_('btn_unplublish') # version action trunk/lib/parser/lib/parser.rb
r499 r541 16 16 17 17 if test = @strings[url] 18 test['src']18 return test['src'], url.split('_').join('/') 19 19 else 20 20 nil … … 71 71 end 72 72 73 text = helper.send(:get_template_text, :src=>url, :current_folder=>'') || "<span class='parser_error'>template '#{url}' not found</span>"73 text, url = helper.send(:get_template_text, :src=>url, :current_folder=>'') || ["<span class='parser_error'>template '#{url}' not found</span>", url] 74 74 url = "/#{url}" unless url[0..0] == '/' # has to be an absolute path 75 75 return [text, url] … … 165 165 expand_with(:preflight=>true) 166 166 if @parts != {} 167 expand_with(:parts => (@context[:parts] || {}).merge(@parts), :blocks => @included_blocks) 167 # first definitions in inclusion history have precedence 168 expand_with(:parts => (@parts).merge(@context[:parts] || {}), :blocks => @included_blocks) 168 169 else 169 170 expand_with(:blocks => @included_blocks) … … 198 199 return false if replacer.empty? 199 200 replace_with(replacer) 201 @params[:name] = name # in case replaced again 200 202 end 201 203 end trunk/lib/parser/lib/rules/code_syntax.rb
r540 r541 102 102 def step 103 103 if ztag = scan(/\A<\/?r:[^>]+>/) 104 ztag =~ /<(\/?)r:([^> ]+)([^>]* )(\/?)>/104 ztag =~ /<(\/?)r:([^> ]+)([^>]*?)(\/?)>/ 105 105 start_group :tag, "<#{$1}r:" 106 106 start_group :ztag, $2 trunk/lib/parser/lib/rules/zafu.rb
r540 r541 210 210 eat $& 211 211 if $1 != @end_tag 212 puts [@end_tag, $1].inspect213 212 # error bad closing ztag 214 213 store "<span class='parser_error'>#{$&.gsub('<', '<').gsub('>','>')}</span>" trunk/lib/parser/lib/rules/zena.rb
r540 r541 1082 1082 elsif lang = @params[:lang] 1083 1083 "#{node}.version.lang == #{lang.inspect}" 1084 elsif can = @params[:can] 1085 # TODO: test 1086 case can 1087 when 'write' 1088 "#{node}.can_write?" 1089 when 'drive' 1090 "#{node}.can_drive?" 1091 end 1084 1092 elsif test = @params[:test] 1085 1093 value1, op, value2 = test.split(/\s+/) trunk/lib/parser/test/parser_test.rb
r497 r541 36 36 testfile :zafu, :zafu_asset, :zafu_insight, :zazen 37 37 def test_single 38 do_test('zafu', ' ztag_same_name_as_tag')38 do_test('zafu', 'include_replace_same') 39 39 end 40 40 trunk/lib/parser/test/zafu.yml
r540 r541 33 33 very_messy: 34 34 src: "this <r: blah> </r:truc> whak" 35 res: "this <r: blah> <span class='parser_error'></ z:truc></span> whak"35 res: "this <r: blah> <span class='parser_error'></r:truc></span> whak" 36 36 37 37 bad_closing_tag: 38 38 src: "this <r:test>looks </r:truc> ok" 39 res: "this [test]looks <span class='parser_error'></ z:truc></span>[/test] ok"39 res: "this [test]looks <span class='parser_error'></r:truc></span>[/test] ok" 40 40 41 41 do_tag: … … 214 214 215 215 name_title: 216 src: "title: <h1 do='void' name='title' do='text' text='dummy'>blah </h1>"216 src: "title: <h1 do='void' name='title' do='text' text='dummy'>blah <b do='void' name='comment'>nothing</b></h1>" 217 217 res: "title: <h1>dummy</h1>" 218 218 … … 224 224 src: "include_with: <r:include template='/name/title'><h1 do='with' part='title' do='hello'/></r:include>" 225 225 res: "include_with: title: <h1>hello world!</h1>" 226 227 include_with_keep_name: 228 src: "keep name: <r:include template='/name/title'><h1 do='with' part='title'><r:hello/> <i do='void' name='comment'>none</i></h1></r:include>" 229 res: "keep name: title: <h1>hello world! <i>none</i></h1>" 230 231 include_include: 232 src: "from ii: <r:include template='/include/with/keep/name'><r:with part='title/comment'>rabbit</r:with></r:include>" 233 res: "from ii: keep name: title: <h1>hello world! <i>rabbit</i></h1>" 234 235 include_for_reverse: 236 src: "from ifr: <r:include template='/name'><r:with part='super/comment'>IFR</r:with></r:include>" 237 res: "from ifr: super: hey ho" 238 239 include_replace_same: 240 src: "from IRS: <r:include template='/include/super/man'><span do='with' part='super/man'>goldorak</span></r:include>" 241 res: "from IRS: include_super: super: hey <span>goldorak</span>" 242 243 include_reverse: 244 src: "from ir: <r:include template='/include/for/reverse'><h1 do='with' part='super'><i do='void' name='comment'>none</i> <r:hello/></h1></r:include>" 245 res: "from ir: from ifr: super: <h1><i>IFR</i> hello world!</h1>" 226 246 227 247 include_empty: trunk/po/en/zena.po
r532 r541 2 2 msgstr "" 3 3 "Project-Id-Version: 0.8.2\n" 4 "POT-Creation-Date: 2007-05-1 8 12:26-0000\n"4 "POT-Creation-Date: 2007-05-19 18:28-0000\n" 5 5 "PO-Revision-Date: 2007-05-14 15:18+0100\n" 6 6 "Last-Translator: Gaspard Bucher <gaspard@teti.ch>\n" … … 14 14 "X-Poedit-Basepath: /Users/gaspard/svk/zena\n" 15 15 16 #: app/controllers/application.rb:2 7716 #: app/controllers/application.rb:285 17 17 msgid "Please log in" 18 18 msgstr "Please log in." 19 19 20 #: app/controllers/application.rb:329 21 msgid "The requested language is not available." 22 msgstr "" 23 24 #: app/controllers/application.rb:356 app/controllers/application.rb:384 20 #: app/controllers/application.rb:338 app/controllers/application.rb:366 25 21 msgid "datetime" 26 22 msgstr "%Y-%m-%d %H:%M" … … 38 34 msgstr "Invalid role." 39 35 40 #: app/controllers/nodes_controller.rb:15 036 #: app/controllers/nodes_controller.rb:152 41 37 msgid "Backup created." 42 38 msgstr "" 43 39 44 #: app/controllers/nodes_controller.rb:15 240 #: app/controllers/nodes_controller.rb:154 45 41 msgid "Could not create backup." 46 42 msgstr "" 47 43 48 #: app/controllers/nodes_controller.rb:18 544 #: app/controllers/nodes_controller.rb:187 49 45 msgid "node updated" 50 46 msgstr "Node successfully updated." 51 47 52 #: app/controllers/nodes_controller.rb:18 748 #: app/controllers/nodes_controller.rb:189 53 49 msgid "could not update" 54 50 msgstr "The node could not be updated." 55 51 56 #: app/controllers/nodes_controller.rb:28 052 #: app/controllers/nodes_controller.rb:288 57 53 msgid "node not found" 58 54 msgstr "Node not found." 59 55 60 #: app/controllers/nodes_controller.rb:3 0456 #: app/controllers/nodes_controller.rb:312 61 57 msgid "Order updated" 62 58 msgstr "Order updated." 63 59 64 #: app/controllers/nodes_controller.rb:3 0660 #: app/controllers/nodes_controller.rb:314 65 61 msgid "Could not update order." 66 62 msgstr "" … … 95 91 msgstr "" 96 92 97 #: app/controllers/versions_controller.rb:12 393 #: app/controllers/versions_controller.rb:124 98 94 msgid "Redaction proposed for publication." 99 95 msgstr "" 100 96 101 #: app/controllers/versions_controller.rb:12 597 #: app/controllers/versions_controller.rb:126 102 98 msgid "Could not propose redaction." 103 99 msgstr "" 104 100 105 #: app/controllers/versions_controller.rb:13 2101 #: app/controllers/versions_controller.rb:133 106 102 msgid "Proposition refused." 107 103 msgstr "" 108 104 109 #: app/controllers/versions_controller.rb:13 5105 #: app/controllers/versions_controller.rb:136 110 106 msgid "Could not refuse proposition." 111 107 msgstr "" … … 669 665 #: app/views/templates/document_create_tabs/_template.rhtml:3 670 666 #: app/views/templates/document_create_tabs/_text_doc.rhtml:3 671 #: app/views/users/_form.rhtml:45 app/views/versions/edit.rhtml:1 2667 #: app/views/users/_form.rhtml:45 app/views/versions/edit.rhtml:15 672 668 msgid "validate" 673 669 msgstr " validate " … … 965 961 msgstr "" 966 962 967 #: app/views/versions/edit.rhtml:1 3963 #: app/views/versions/edit.rhtml:16 968 964 msgid "save" 969 965 msgstr " save " 970 966 971 #: app/views/versions/edit.rhtml: 17967 #: app/views/versions/edit.rhtml:20 972 968 msgid "btn_add_document" 973 969 msgstr "<img src='/images/picture_add.png' alt='add documents'/>" … … 1187 1183 msgstr "Node not found." 1188 1184 1189 #: lib/gettext_strings.rb:66 1185 #: lib/gettext_strings.rb:65 1186 msgid "search results" 1187 msgstr "" 1188 1189 #: lib/gettext_strings.rb:67 1190 1190 #, fuzzy 1191 1191 msgid "btn_unplublish" 1192 1192 msgstr "<img src='/images/wand.png' alt='publish'/>" 1193 1193 1194 #: lib/gettext_strings.rb:6 81194 #: lib/gettext_strings.rb:69 1195 1195 msgid "status_50" 1196 1196 msgstr "" 1197 1197 1198 #: lib/gettext_strings.rb: 691198 #: lib/gettext_strings.rb:70 1199 1199 msgid "status_40" 1200 1200 msgstr "" 1201 1201 1202 #: lib/gettext_strings.rb:7 01202 #: lib/gettext_strings.rb:71 1203 1203 msgid "status_35" 1204 1204 msgstr "" 1205 1205 1206 #: lib/gettext_strings.rb:7 11206 #: lib/gettext_strings.rb:72 1207 1207 msgid "status_33" 1208 1208 msgstr "" 1209 1209 1210 #: lib/gettext_strings.rb:7 21210 #: lib/gettext_strings.rb:73 1211 1211 msgid "status_30" 1212 1212 msgstr "" 1213 1213 1214 #: lib/gettext_strings.rb:7 31214 #: lib/gettext_strings.rb:74 1215 1215 msgid "status_20" 1216 1216 msgstr "" 1217 1217 1218 #: lib/gettext_strings.rb:7 41218 #: lib/gettext_strings.rb:75 1219 1219 msgid "status_10" 1220 1220 msgstr "" 1221 1221 1222 #: lib/gettext_strings.rb:7 51222 #: lib/gettext_strings.rb:76 1223 1223 msgid "status_0" 1224 1224 msgstr "" 1225 1225 1226 #: lib/gettext_strings.rb:7 71226 #: lib/gettext_strings.rb:78 1227 1227 msgid "en" 1228 1228 msgstr "" 1229 1229 1230 #: lib/gettext_strings.rb:7 81230 #: lib/gettext_strings.rb:79 1231 1231 msgid "fr" 1232 1232 msgstr "" 1233 1233 1234 #: lib/gettext_strings.rb: 791234 #: lib/gettext_strings.rb:80 1235 1235 msgid "de" 1236 1236 msgstr "" 1237 1237 1238 #: lib/gettext_strings.rb:8 01238 #: lib/gettext_strings.rb:81 1239 1239 msgid "Monday" 1240 1240 msgstr "" 1241 1241 1242 #: lib/gettext_strings.rb:8 11242 #: lib/gettext_strings.rb:82 1243 1243 msgid "Tuesday" 1244 1244 msgstr "" 1245 1245 1246 #: lib/gettext_strings.rb:8 21246 #: lib/gettext_strings.rb:83 1247 1247 msgid "Wednesday" 1248 1248 msgstr "" 1249 1249 1250 #: lib/gettext_strings.rb:8 31250 #: lib/gettext_strings.rb:84 1251 1251 msgid "Thursday" 1252 1252 msgstr "" 1253 1253 1254 #: lib/gettext_strings.rb:8 41254 #: lib/gettext_strings.rb:85 1255 1255 msgid "Friday" 1256 1256 msgstr "" 1257 1257 1258 #: lib/gettext_strings.rb:8 51258 #: lib/gettext_strings.rb:86 1259 1259 msgid "Saturday" 1260 1260 msgstr "" 1261 1261 1262 #: lib/gettext_strings.rb:8 61262 #: lib/gettext_strings.rb:87 1263 1263 msgid "Sunday" 1264 1264 msgstr "" 1265 1265 1266 #: lib/gettext_strings.rb:8 81266 #: lib/gettext_strings.rb:89 1267 1267 msgid "mon" 1268 1268 msgstr "" 1269 1269 1270 #: lib/gettext_strings.rb: 891270 #: lib/gettext_strings.rb:90 1271 1271 msgid "tue" 1272 1272 msgstr "" 1273 1273 1274 #: lib/gettext_strings.rb:9 01274 #: lib/gettext_strings.rb:91 1275 1275 msgid "wed" 1276 1276 msgstr "" 1277 1277 1278 #: lib/gettext_strings.rb:9 11278 #: lib/gettext_strings.rb:92 1279 1279 msgid "thu" 1280 1280 msgstr "" 1281 1281 1282 #: lib/gettext_strings.rb:9 21282 #: lib/gettext_strings.rb:93 1283 1283 msgid "fri" 1284 1284 msgstr "" 1285 1285 1286 #: lib/gettext_strings.rb:9 31286 #: lib/gettext_strings.rb:94 1287 1287 msgid "sat" 1288 1288 msgstr "" 1289 1289 1290 #: lib/gettext_strings.rb:9 41290 #: lib/gettext_strings.rb:95 1291 1291 msgid "sun" 1292 1292 msgstr "" 1293 1293 1294 #: lib/gettext_strings.rb:9 61294 #: lib/gettext_strings.rb:97 1295 1295 msgid "January" 1296 1296 msgstr "" 1297 1297 1298 #: lib/gettext_strings.rb:9 71298 #: lib/gettext_strings.rb:98 1299 1299 msgid "February" 1300 1300 msgstr "" 1301 1301 1302 #: lib/gettext_strings.rb:9 81302 #: lib/gettext_strings.rb:99 1303 1303 msgid "March" 1304 1304 msgstr "" 1305 1305 1306 #: lib/gettext_strings.rb: 991306 #: lib/gettext_strings.rb:100 1307 1307 msgid "April" 1308 1308 msgstr "" 1309 1309 1310 #: lib/gettext_strings.rb:10 01310 #: lib/gettext_strings.rb:101 1311 1311 msgid "May" 1312 1312 msgstr "" 1313 1313 1314 #: lib/gettext_strings.rb:10 11314 #: lib/gettext_strings.rb:102 1315 1315 msgid "June" 1316 1316 msgstr "" 1317 1317 1318 #: lib/gettext_strings.rb:10 21318 #: lib/gettext_strings.rb:103 1319 1319 msgid "July" 1320 1320 msgstr "" 1321 1321 1322 #: lib/gettext_strings.rb:10 31322 #: lib/gettext_strings.rb:104 1323 1323 msgid "August" 1324 1324 msgstr "" 1325 1325 1326 #: lib/gettext_strings.rb:10 41326 #: lib/gettext_strings.rb:105 1327 1327 msgid "September" 1328 1328 msgstr "" 1329 1329 1330 #: lib/gettext_strings.rb:10 51330 #: lib/gettext_strings.rb:106 1331 1331 msgid "October" 1332 1332 msgstr "" 1333 1333 1334 #: lib/gettext_strings.rb:10 61334 #: lib/gettext_strings.rb:107 1335 1335 msgid "November" 1336 1336 msgstr "" 1337 1337 1338 #: lib/gettext_strings.rb:10 71338 #: lib/gettext_strings.rb:108 1339 1339 msgid "December" 1340 1340 msgstr "" 1341 1341 1342 #: lib/gettext_strings.rb:1 091342 #: lib/gettext_strings.rb:110 1343 1343 msgid "User name:" 1344 1344 msgstr "" 1345 1345 1346 #: lib/gettext_strings.rb:11 01346 #: lib/gettext_strings.rb:111 1347 1347 msgid "Password:" 1348 1348 msgstr "" 1349 1349 1350 #: lib/gettext_strings.rb:11 31350 #: lib/gettext_strings.rb:114 1351 1351 msgid "you are editing the original" 1352 1352 msgstr "" 1353 1353 1354 #: lib/gettext_strings.rb:11 41354 #: lib/gettext_strings.rb:115 1355 1355 msgid "redaction saved" 1356 1356 msgstr "" trunk/po/fr/zena.po
r532 r541 2 2 msgstr "" 3 3 "Project-Id-Version: 0.8.2\n" 4 "POT-Creation-Date: 2007-05-1 8 12:26-0000\n"5 "PO-Revision-Date: 2007-05-1 8 14:28+0100\n"4 "POT-Creation-Date: 2007-05-19 18:28-0000\n" 5 "PO-Revision-Date: 2007-05-19 20:37+0100\n" 6 6 "Last-Translator: Gaspard Bucher <gaspard@teti.ch>\n" 7 7 "Language-Team: fr <gaspard@teti.ch>\n" … … 14 14 "X-Poedit-Basepath: /Users/gaspard/svk/zena\n" 15 15 16 #: app/controllers/application.rb:2 7716 #: app/controllers/application.rb:285 17 17 msgid "Please log in" 18 18 msgstr "Veuillez vous authentifier." 19 19 20 #: app/controllers/application.rb:329 21 msgid "The requested language is not available." 22 msgstr "La langue demandée n'est pas disponible." 23 24 #: app/controllers/application.rb:356 25 #: app/controllers/application.rb:384 20 #: app/controllers/application.rb:338 21 #: app/controllers/application.rb:366 26 22 msgid "datetime" 27 23 msgstr "%d.%m.%Y %H:%M" … … 39 35 msgstr "Role non-valable." 40 36 41 #: app/controllers/nodes_controller.rb:15 037 #: app/controllers/nodes_controller.rb:152 42 38 msgid "Backup created." 43 39 msgstr "Copie de sauvegarde effectuée." 44 40 45 #: app/controllers/nodes_controller.rb:15 241 #: app/controllers/nodes_controller.rb:154 46 42 msgid "Could not create backup." 47 43 msgstr "La sauvegarde n'a pas pu être créée." 48 44 49 #: app/controllers/nodes_controller.rb:18 545 #: app/controllers/nodes_controller.rb:187 50 46 msgid "node updated" 51 47 msgstr "Objet mis à jour." 52 48 53 #: app/controllers/nodes_controller.rb:18 749 #: app/controllers/nodes_controller.rb:189 54 50 msgid "could not update" 55 51 msgstr "L'objet n'a pas pu être mis à jour." 56 52 57 #: app/controllers/nodes_controller.rb:28 053 #: app/controllers/nodes_controller.rb:288 58 54 msgid "node not found" 59 55 msgstr "objet non trouvé" 60 56 61 #: app/controllers/nodes_controller.rb:3 0457 #: app/controllers/nodes_controller.rb:312 62 58 msgid "Order updated" 63 59 msgstr "Ordre mis à jour." 64 60 65 #: app/controllers/nodes_controller.rb:3 0661 #: app/controllers/nodes_controller.rb:314 66 62 msgid "Could not update order." 67 63 msgstr "L'ordre n'a pas pu être mis à jour." … … 96 92 msgstr "La version n'a pas pu être éditée." 97 93 98 #: app/controllers/versions_controller.rb:12 394 #: app/controllers/versions_controller.rb:124 99 95 msgid "Redaction proposed for publication." 100 96 msgstr "La rédaction a été proposée pour la publication." 101 97 102 #: app/controllers/versions_controller.rb:12 598 #: app/controllers/versions_controller.rb:126 103 99 msgid "Could not propose redaction." 104 100 msgstr "La rédaction n'a pas pu être proposée pour la publication." 105 101 106 #: app/controllers/versions_controller.rb:13 2102 #: app/controllers/versions_controller.rb:133 107 103 msgid "Proposition refused." 108 104 msgstr "La proposition a été refusée." 109 105 110 #: app/controllers/versions_controller.rb:13 5106 #: app/controllers/versions_controller.rb:136 111 107 msgid "Could not refuse proposition." 112 108 msgstr "La proposition n'a pas pu être refusée." … … 751 747 #: app/views/templates/document_create_tabs/_text_doc.rhtml:3 752 748 #: app/views/users/_form.rhtml:45 753 #: app/views/versions/edit.rhtml:1 2749 #: app/views/versions/edit.rhtml:15 754 750 msgid "validate" 755 751 msgstr " valider " … … 1054 1050 msgstr "choisir les versions et visualiser les changements" 1055 1051 1056 #: app/views/versions/edit.rhtml:1 31052 #: app/views/versions/edit.rhtml:16 1057 1053 msgid "save" 1058 1054 msgstr " enregistrer " 1059 1055 1060 #: app/views/versions/edit.rhtml: 171056 #: app/views/versions/edit.rhtml:20 1061 1057 msgid "btn_add_document" 1062 1058 msgstr "<img src='/images/picture_add.png' alt='ajouter des documents'/>" … … 1211 1207 1212 1208 #: lib/gettext_strings.rb:51 1213 #, fuzzy1214 1209 msgid "original by" 1215 msgstr " original"1210 msgstr "premiÚre version par" 1216 1211 1217 1212 #: lib/gettext_strings.rb:52 … … 1247 1242 msgstr "la recherche n'a donné aucun résultat" 1248 1243 1249 #: lib/gettext_strings.rb:66 1244 #: lib/gettext_strings.rb:65 1245 msgid "search results" 1246 msgstr "résultats de la recherche" 1247 1248 #: lib/gettext_strings.rb:67 1250 1249 msgid "btn_unplublish" 1251 1250 msgstr "<img src='/images/delete.png' alt='dépublier'/>" 1252 1251 1253 #: lib/gettext_strings.rb:6 81252 #: lib/gettext_strings.rb:69 1254 1253 msgid "status_50" 1255 1254 msgstr "publié" 1256 1255 1257 #: lib/gettext_strings.rb: 691256 #: lib/gettext_strings.rb:70 1258 1257 msgid "status_40" 1259 1258 msgstr "proposé" 1260 1259 1261 #: lib/gettext_strings.rb:7 01260 #: lib/gettext_strings.rb:71 1262 1261 msgid "status_35" 1263 1262 msgstr "proposé avec" 1264 1263 1265 #: lib/gettext_strings.rb:7 11264 #: lib/gettext_strings.rb:72 1266 1265 msgid "status_33" 1267 1266 msgstr "rédaction visible" 1268 1267 1269 #: lib/gettext_strings.rb:7 21268 #: lib/gettext_strings.rb:73 1270 1269 msgid "status_30" 1271 1270 msgstr "rédaction" 1272 1271 1273 #: lib/gettext_strings.rb:7 31272 #: lib/gettext_strings.rb:74 1274 1273 msgid "status_20" 1275 1274 msgstr "remplacé" 1276 1275 1277 #: lib/gettext_strings.rb:7 41276 #: lib/gettext_strings.rb:75 1278 1277 msgid "status_10" 1279 1278 msgstr "enlevé" 1280 1279 1281 #: lib/gettext_strings.rb:7 51280 #: lib/gettext_strings.rb:76 1282 1281 msgid "status_0" 1283 1282 msgstr "effacé" 1284 1283 1285 #: lib/gettext_strings.rb:7 71284 #: lib/gettext_strings.rb:78 1286 1285 msgid "en" 1287 1286 msgstr "anglais" 1288 1287 1289 #: lib/gettext_strings.rb:7 81288 #: lib/gettext_strings.rb:79 1290 1289 msgid "fr" 1291 1290 msgstr "français" 1292 1291 1293 #: lib/gettext_strings.rb: 791292 #: lib/gettext_strings.rb:80 1294 1293 msgid "de" 1295 1294 msgstr "allemand" 1296 1295 1297 #: lib/gettext_strings.rb:8 01296 #: lib/gettext_strings.rb:81 1298 1297 msgid "Monday" 1299 1298 msgstr "lundi" 1300 1299 1301 #: lib/gettext_strings.rb:8 11300 #: lib/gettext_strings.rb:82 1302 1301 msgid "Tuesday" 1303 1302 msgstr "mardi" 1304 1303 1305 #: lib/gettext_strings.rb:8 2
