This repository has been archived by the owner on Nov 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
/
snippets.tt
51 lines (46 loc) · 2.6 KB
/
snippets.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<h1><@ l('Translate %s into %s',token_domain.name,cur_language.name_in_english) @></h1>
<@ INCLUDE translate/languagebox.tt @>
<@ INCLUDE translate/pageform.tt @>
<p class="ac"><@ l('Screen reader users: there is plain text information within the form') @>.</p>
<form action="<@ u('Translate','snippets',token_domain.key,cur_language.locale) @>" method="post" id="formTranslateDomain">
<div>
<div class="token_language_headmenu">
<a href="<@ u('Translate','allsnippets',token_domain.key,cur_language.locale) @>">
Snippets overview
</a> |
<a href="<@ u('Translate','comments',token_domain.key,cur_language.locale) @>">
<@ l('Discuss') @>
</a> |
<@ IF only_untranslated @>
<a href="<@ u('Translate','snippets',token_domain.key,cur_language.locale) @>"><@ l('Show all snippets again') @></a>
<input type="hidden" name="only_untranslated" value="1" />
<@ ELSE @>
<a href="<@ u('Translate','snippets',token_domain.key,cur_language.locale,{ only_untranslated => 1 }) @>"><@ l('Show only untranslated snippets') @></a>
<@ END @>
</div>
</div>
<fieldset>
<@ IF placeholder_notes @>
<p><b><@ l('Please note') @>:</b> <a href="<@ u('Translate','snippets',token_domain.key,cur_language.locale,{ placeholder_notes => 0 }) @>"><@ l('Hide these notes') @></a></p>
<hr>
<p><@ l('%%s is a placeholder and will get replaced on usage of your translation. You should generally leave it in your translation.') @></p>
<hr>
<p><@ l('If you need to change the order of the placeholders, you can use the %%2$s syntax. Example: "From %%s to %%s" could go as "To %%2$s from %%1$s"') @></p>
<hr>
<p><@ l('You do not need to translate every snippet to be useful -- just do the ones you can do well!') @></p>
<@ ELSE @>
<p><a href="<@ u('Translate','snippets',token_domain.key,cur_language.locale,{ placeholder_notes => 1 }) @>"><@ l('Show notes about %%s placeholders') @></a></p>
<@ END @>
</fieldset>
<@ FOR token_language IN token_languages.all @>
<@ INCLUDE translate/tokenlanguage/view.tt show_token_language_link=1 @>
<@ END @>
<div>
<input type="submit" name="save_translations" value="<@ l('Save your translations') @>">
<@ IF token_languages.pager.next_page @>
<input type="submit" name="save_translations_next_page" value="<@ l('Save your translations and go to next page') @>">
<@ END @>
</div>
</form>
<@ INCLUDE pager.tt pager=token_languages.pager url=u('Translate','snippets',token_domain.key,cur_language.locale,{ page => 'PAGE_NO', only_untranslated => ( only_untranslated ? 1 : 0 )}) @>
<p><a href="<@ u('Translate','index') @>"><@ l('Back to all text domains') @></a></p>