mirror of
				https://github.com/osmarks/mycorrhiza.git
				synced 2025-11-03 17:13:07 +00:00 
			
		
		
		
	Recent changes: Translate to Russian
Now it's свежие правки, like in MediaWiki
This commit is contained in:
		@@ -72,8 +72,13 @@ var (
 | 
				
			|||||||
{{define "diff for at title"}}Разница для {{beautifulName .HyphaName}} для {{.Hash}}{{end}}
 | 
					{{define "diff for at title"}}Разница для {{beautifulName .HyphaName}} для {{.Hash}}{{end}}
 | 
				
			||||||
{{define "diff for at heading"}}Разница для <a href="/hypha/{{.HyphaName}}">{{beautifulName .HyphaName}}</a> для {{.Hash}}{{end}}
 | 
					{{define "diff for at heading"}}Разница для <a href="/hypha/{{.HyphaName}}">{{beautifulName .HyphaName}}</a> для {{.Hash}}{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{{define "count pre"}}Отобразить{{end}}
 | 
				
			||||||
 | 
					{{define "count post"}}свежих правок{{end}}
 | 
				
			||||||
 | 
					{{define "subscribe via"}}Подписаться через <a href="/recent-changes-rss">RSS</a>, <a href="/recent-changes-atom">Atom</a> или <a href="/recent-changes-json">JSON-ленту</a>.{{end}}
 | 
				
			||||||
 | 
					{{define "recent changes"}}Свежие правки{{end}}
 | 
				
			||||||
 | 
					{{define "n recent changes"}}{{.}} недавн{{if eq . 1}}ее изменение{{else if le . 4}}недавних изменения{{else}}недавних изменений{{end}}{{end}}
 | 
				
			||||||
 | 
					{{define "recent empty"}}Правки не найдены.{{end}}
 | 
				
			||||||
`
 | 
					`
 | 
				
			||||||
	// TODO: translate recent changes
 | 
					 | 
				
			||||||
	chainPrimitiveDiff viewutil.Chain
 | 
						chainPrimitiveDiff viewutil.Chain
 | 
				
			||||||
	chainRecentChanges viewutil.Chain
 | 
						chainRecentChanges viewutil.Chain
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
{{define "subscribe via"}}{{end}}
 | 
					 | 
				
			||||||
{{define "recent changes"}}Recent changes{{end}}
 | 
					{{define "recent changes"}}Recent changes{{end}}
 | 
				
			||||||
{{define "n recent changes"}}{{.}} recent change{{if ne . 1}}s{{end}}{{end}}
 | 
					{{define "n recent changes"}}{{.}} recent change{{if ne . 1}}s{{end}}{{end}}
 | 
				
			||||||
{{define "title"}}{{template "n recent changes" .EditCount}}{{end}}
 | 
					{{define "title"}}{{template "n recent changes" .EditCount}}{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,17 +63,6 @@
 | 
				
			|||||||
	"ask_remove_media_verb": "убрать медиа",
 | 
						"ask_remove_media_verb": "убрать медиа",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"history_title": "История «%s»",
 | 
						"history_title": "История «%s»",
 | 
				
			||||||
	
 | 
					 | 
				
			||||||
	"recent_title": "{{.n}} %s",
 | 
					 | 
				
			||||||
	"recent_title+one": "недавнее изменение",
 | 
					 | 
				
			||||||
	"recent_title+few": "недавних изменения",
 | 
					 | 
				
			||||||
	"recent_title+many": "недавних изменений",
 | 
					 | 
				
			||||||
	"recent_heading": "Недавние изменения",
 | 
					 | 
				
			||||||
	"recent_count_pre": "Отобразить",
 | 
					 | 
				
			||||||
	"recent_count_post": "недавних изменений",
 | 
					 | 
				
			||||||
	"recent_subscribe": "Подписаться через {{.rss}}, {{.atom}} или {{.json}}",
 | 
					 | 
				
			||||||
	"recent_subscribe_json": "JSON-ленту",
 | 
					 | 
				
			||||||
	"recent_empty": "Не удалось найти последние изменения.",
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"revision_title": "{{.name}} из {{.rev}}",
 | 
						"revision_title": "{{.name}} из {{.rev}}",
 | 
				
			||||||
	"revision_warning": "Обратите внимание, просмотр медиа в истории пока что недоступен.",
 | 
						"revision_warning": "Обратите внимание, просмотр медиа в истории пока что недоступен.",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,11 +22,13 @@ func (c Chain) ru(ru *template.Template) Chain {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Get returns an appropriate language representation for the given locale in meta.
 | 
					// Get returns an appropriate language representation for the given locale in meta.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// TODO: Get rid of this
 | 
				
			||||||
func (c Chain) Get(meta Meta) *template.Template {
 | 
					func (c Chain) Get(meta Meta) *template.Template {
 | 
				
			||||||
	switch meta.Locale() {
 | 
						switch meta.Locale() {
 | 
				
			||||||
	case "_en":
 | 
						case "en":
 | 
				
			||||||
		return c._en
 | 
							return c._en
 | 
				
			||||||
	case "_ru":
 | 
						case "ru":
 | 
				
			||||||
		return c._ru
 | 
							return c._ru
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	panic("unknown language " + meta.Locale())
 | 
						panic("unknown language " + meta.Locale())
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user