blob: 82d5b078f1505cb66dd26a03b26d9368f8827380 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
{strip}
<div class="floaticon">{bithelp}</div>
<div class="admin languages">
<div class="header">
<h1>{tr}Import Languages{/tr}</h1>
</div>
{formfeedback hash=$impmsg}
<div class="body">
{jstabs}
{jstab title="Import Languages"}
{form legend="Import languages" enctype="multipart/form-data"}
<div class="row">
{formlabel label="Select the languages to Import"}
{forminput}
{formhelp note="Languages that are checked below will be imported from the language string files in the bitweaver distribution. If you have your own language file, please choose it below."}
{foreach from=$impLanguages key=langCode item=lang}
<label><input type="checkbox" name="imp_languages[]" value="{$langCode}" /> {$lang.full_name}</label><br/>
{/foreach}
{if $gBitUser->isAdmin()}
<br/>
<label><input type="checkbox" name="import_master" value="1" /> Master Strings</label><br/>
{formhelp note="The English strings file will be used to set up the language database and will be used as a reference for translations."}
{/if}
{/forminput}
</div>
<div class="row">
{formlabel label="Upload Language File"}
{forminput}
{formhelp note="Choose a language file to upload..."}
<input type="file" name="upload_file" size="40" /><br/>
{/forminput}
{forminput}
{formhelp note="Upload File Language..."}
<select name="upload_lang_code" id="upload_lang_code">
{foreach from=$impLanguages key=langCode item=lang}
<option value="{$langCode}" >{$lang.full_name}</option>
{/foreach}
</select>
{/forminput}
</div>
<div class="row">
{formlabel label="Options"}
{forminput}
<label><input type="radio" name="overwrite" value="n" />
{tr}Do not import string if it has been changed in the local database{/tr}</label>
<br/>
<label><input type="radio" name="overwrite" value="y" />
{tr}Overwrite changes in the local database{/tr}</label>
<br/>
<label><input type="radio" name="overwrite" value="r" checked="checked" />
{tr}Manually resolve conflicts between database and import file{/tr}</label>
{/forminput}
</div>
<div class="row submit">
<input type="submit" name="import" value="{tr}Import{/tr}" />
</div>
{/form}
{/jstab}
{jstab title="Export Languages"}
{form legend="Export language"}
<div class="row">
{formlabel label="Select the language to Export" for="exp_lang"}
{forminput}
<select name="export_lang_code" id="export_lang_code">
{foreach from=$expLanguages key=langCode item=lang}
<option value="{$langCode}" {if $exp_language eq $langCode}selected="selected"{/if}>{$lang.full_name}</option>
{/foreach}
</select>
{formhelp note=""}
{/forminput}
</div>
<div class="row">
{formlabel label="Export All Translations" for="all_trans"}
{forminput}
<input type="checkbox" name="all_trans" id="all_trans" {if $allTrans}checked="checked"{/if} value="y" />
{formhelp note="This will export all strings, even ones that are not in use. if you have not modified these strings, there isn't really much point in including them."}
{/forminput}
</div>
<div class="row">
{formlabel label="Destination" for="is_disabled"}
{forminput}
<input type="radio" name="target" value="temp" />Save to temporary file<br/>
{formhelp note="This will save the file to a temporary location on the server."}
<input type="radio" name="target" value="download" checked="checked" />Download translation file<br/>
{formhelp note="Save this to languages/lang/(lang_code)/language.php where lang_code is the language your are downloading."}
{/forminput}
</div>
<div class="row submit">
<input type="submit" name="export" value="{tr}Export{/tr}" />
</div>
{/form}
{/jstab}
{/jstabs}
</div><!-- end .body -->
</div><!-- end .languages -->
{/strip}
|