Skip to content

Commit 77895df

Browse files
committed
Turkish localization (courtesy of Brawllux)
1 parent 16ff9f7 commit 77895df

8 files changed

Lines changed: 382 additions & 18 deletions

File tree

config/OpenWithExConfig.vcxproj

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,16 @@
107107
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
108108
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithexconfig.en-US.res
109109

110-
:: Final `del` line should not be copied with each new language
111-
112110
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.ja-JP.res" openwithexconfig.ja-JP.rc
113111
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
114112
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.ja-JP.res"
115113
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
116114

115+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.tr-TR.res" openwithexconfig.tr-TR.rc
116+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
117+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.tr-TR.res"
118+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
119+
117120
del "$(IntermediateOutputPath)temp.res"</Command>
118121
</PostBuildEvent>
119122
</ItemDefinitionGroup>
@@ -142,13 +145,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
142145
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
143146
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithexconfig.en-US.res
144147

145-
:: Final `del` line should not be copied with each new language
146-
147148
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.ja-JP.res" openwithexconfig.ja-JP.rc
148149
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
149150
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.ja-JP.res"
150151
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
151152

153+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.tr-TR.res" openwithexconfig.tr-TR.rc
154+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
155+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.tr-TR.res"
156+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
157+
152158
del "$(IntermediateOutputPath)temp.res"</Command>
153159
</PostBuildEvent>
154160
</ItemDefinitionGroup>
@@ -173,13 +179,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
173179
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
174180
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithexconfig.en-US.res
175181

176-
:: Final `del` line should not be copied with each new language
177-
178182
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.ja-JP.res" openwithexconfig.ja-JP.rc
179183
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
180184
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.ja-JP.res"
181185
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
182186

187+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.tr-TR.res" openwithexconfig.tr-TR.rc
188+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
189+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.tr-TR.res"
190+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
191+
183192
del "$(IntermediateOutputPath)temp.res"</Command>
184193
</PostBuildEvent>
185194
</ItemDefinitionGroup>
@@ -208,13 +217,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
208217
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
209218
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithexconfig.en-US.res
210219

211-
:: Final `del` line should not be copied with each new language
212-
213220
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.ja-JP.res" openwithexconfig.ja-JP.rc
214221
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
215222
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.ja-JP.res"
216223
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
217224

225+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithexconfig.tr-TR.res" openwithexconfig.tr-TR.rc
226+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
227+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithexconfig.tr-TR.res"
228+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
229+
218230
del "$(IntermediateOutputPath)temp.res"</Command>
219231
</PostBuildEvent>
220232
</ItemDefinitionGroup>

config/openwithexconfig.tr-TR.rc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#pragma code_page(65001) // enable UTF-8
2+
3+
#include <windows.h>
4+
#include "resource.h"
5+
6+
LANGUAGE LANG_TURKISH, SUBLANG_TURKISH_TURKEY
7+
8+
IDD_OPENWITHEXCONFIG DIALOGEX 0, 0, 197, 93
9+
STYLE DS_SHELLFONT | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
10+
CAPTION "OpenWithEx Seçenekleri"
11+
FONT 8, "MS Shell Dlg"
12+
{
13+
LTEXT "Tarz:", -1, 7, 7, 183, 8
14+
COMBOBOX IDD_STYLEBOX, 7, 18, 183, 18, CBS_DROPDOWNLIST
15+
DEFPUSHBUTTON "Tamam", IDOK, 32, 70, 50, 14
16+
PUSHBUTTON "İptal", IDCANCEL, 86, 70, 50, 14
17+
PUSHBUTTON "&Uygula", IDD_APPLY, 140, 70, 50, 14
18+
}

installer/installer-x64.nsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ManifestSupportedOS all
4848

4949
!insertmacro LANG_LOAD "English"
5050
!insertmacro LANG_LOAD "Japanese"
51+
!insertmacro LANG_LOAD "Turkish"
5152

5253
Function .onInit
5354
# NSIS produces an x86-32 installer. Deny installation if
@@ -134,6 +135,10 @@ SectionGroup "$(STRING_LANGS)"
134135
Section "$(STRING_JA_JP)"
135136
!insertmacro InstallLang "ja-JP"
136137
SectionEnd
138+
139+
Section "$(STRING_TR_TR)"
140+
!insertmacro InstallLang "tr-TR"
141+
SectionEnd
137142
SectionGroupEnd
138143

139144
Section "Uninstall"

installer/l10n/English.nsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
!insertmacro LANG_STRING STRING_LANGS "Languages"
77
!insertmacro LANG_STRING STRING_EN_US "English (United States)"
8-
!insertmacro LANG_STRING STRING_JA_JP "Japanese"
8+
!insertmacro LANG_STRING STRING_JA_JP "Japanese"
9+
!insertmacro LANG_STRING STRING_TR_TR "Turkish"

installer/l10n/Japanese.nsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
!insertmacro LANG_STRING STRING_LANGS "言語"
77
!insertmacro LANG_STRING STRING_EN_US "英語(アメリカ)"
8-
!insertmacro LANG_STRING STRING_JA_JP "日本語"
8+
!insertmacro LANG_STRING STRING_JA_JP "日本語"
9+
!insertmacro LANG_STRING STRING_TR_TR "トルコ語"

installer/l10n/Turkish.nsh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
!define LANG "Turkish"
2+
!insertmacro LANG_STRING STRING_NOT_X64 "OpenWithEx 32-bit işletim sistemlerini desteklememektedir."
3+
!insertmacro LANG_STRING STRING_NOT_WIN8 "OpenWithEx Windows 8 veya daha yüksek bir sürüm gerektirir."
4+
!insertmacro LANG_STRING STRING_CONFIG_SHORTCUT "OpenWithEx'i yapılandırın"
5+
6+
!insertmacro LANG_STRING STRING_LANGS "Diller"
7+
!insertmacro LANG_STRING STRING_EN_US "İngilizce (ABD)"
8+
!insertmacro LANG_STRING STRING_JA_JP "Japonca"
9+
!insertmacro LANG_STRING STRING_TR_TR "Türkçe"

src/OpenWithEx.vcxproj

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,16 @@
117117
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
118118
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithex.en-US.res
119119

120-
:: Final `del` line should not be copied with each new language
121-
122120
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.ja-JP.res" openwithex.ja-JP.rc
123121
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
124122
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.ja-JP.res"
125123
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
126124

125+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.tr-TR.res" openwithex.tr-TR.rc
126+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
127+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.tr-TR.res"
128+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
129+
127130
del "$(IntermediateOutputPath)temp.res"</Command>
128131
</PostBuildEvent>
129132
</ItemDefinitionGroup>
@@ -154,13 +157,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
154157
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
155158
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithex.en-US.res
156159

157-
:: Final `del` line should not be copied with each new language
158-
159160
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.ja-JP.res" openwithex.ja-JP.rc
160161
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
161162
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.ja-JP.res"
162163
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
163164

165+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.tr-TR.res" openwithex.tr-TR.rc
166+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
167+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.tr-TR.res"
168+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
169+
164170
del "$(IntermediateOutputPath)temp.res"</Command>
165171
</PostBuildEvent>
166172
</ItemDefinitionGroup>
@@ -189,13 +195,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
189195
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
190196
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithex.en-US.res
191197

192-
:: Final `del` line should not be copied with each new language
193-
194198
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.ja-JP.res" openwithex.ja-JP.rc
195199
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
196200
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.ja-JP.res"
197201
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
198202

203+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.tr-TR.res" openwithex.tr-TR.rc
204+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
205+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.tr-TR.res"
206+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
207+
199208
del "$(IntermediateOutputPath)temp.res"</Command>
200209
</PostBuildEvent>
201210
</ItemDefinitionGroup>
@@ -227,13 +236,16 @@ del "$(IntermediateOutputPath)temp.res"</Command>
227236
<Command>if not exist "$(OutDir)en-US" md "$(OutDir)en-US"
228237
link /dll /noentry /out:"$(OutDir)en-US\$(TargetFileName).mui" $(IntermediateOutputPath)openwithex.en-US.res
229238

230-
:: Final `del` line should not be copied with each new language
231-
232239
rc /D "_UNICODE" /D "UNICODE" /l 0x0411 /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.ja-JP.res" openwithex.ja-JP.rc
233240
if not exist "$(OutDir)ja-JP" md "$(OutDir)ja-JP"
234241
link /dll /noentry /out:"$(OutDir)ja-JP\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.ja-JP.res"
235242
muirct -c "$(TargetPath)" -e "$(OutDir)ja-JP\$(TargetFileName).mui"
236243

244+
rc /D "_UNICODE" /D "UNICODE" /l 0x041F /q "muiconfig.xml" /g 0x0409 /nologo /fo"$(IntermediateOutputPath)temp.res" /fm"$(IntermediateOutputPath)openwithex.tr-TR.res" openwithex.tr-TR.rc
245+
if not exist "$(OutDir)tr-TR" md "$(OutDir)tr-TR"
246+
link /dll /noentry /out:"$(OutDir)tr-TR\$(TargetFileName).mui" "$(IntermediateOutputPath)openwithex.tr-TR.res"
247+
muirct -c "$(TargetPath)" -e "$(OutDir)tr-TR\$(TargetFileName).mui"
248+
237249
del "$(IntermediateOutputPath)temp.res"</Command>
238250
</PostBuildEvent>
239251
</ItemDefinitionGroup>

0 commit comments

Comments
 (0)