Commit f1502197 authored by brabox's avatar brabox

Fixed RU translation:

- Filename to get priority
- Use regkey to determine if language is correct
parent df8d3c0f
...@@ -5,7 +5,7 @@ category=4 ...@@ -5,7 +5,7 @@ category=4
size=0 size=0
[disableFiles] [disableFiles]
1\name=lang/russian_tstrings202_v8.0.0.big 1\name=lang/russiantranslatedstrings202_v8.0.0.big
size=1 size=1
[switchFiles] [switchFiles]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
category=4 category=4
[enableFiles] [enableFiles]
1\name=lang/russian_tstrings202_v8.0.0.big 1\name=lang/russiantranslatedstrings202_v8.0.0.big
1\checksum=8446a71c5c1f8ddc8a1fa5c7d2f5d1ec510e2220 1\checksum=8446a71c5c1f8ddc8a1fa5c7d2f5d1ec510e2220
size=1 size=1
......
...@@ -17,17 +17,23 @@ SetCompressor /SOLID lzma ...@@ -17,17 +17,23 @@ SetCompressor /SOLID lzma
BrandingText "Rise of the Witch-King 2.02 -- www.gamereplays.org" BrandingText "Rise of the Witch-King 2.02 -- www.gamereplays.org"
Var LANG
;; ;;
; Main component ; Main component
;; ;;
Section Section
DetailPrint "Determining language..." DetailPrint "Determining language..."
;Check if packaged bfme2 folder has not moved or sth
${If} ${FileExists} "lang\Russian.big" ReadRegStr $LANG HKLM "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" Language
DetailPrint "Your language is: $LANG"
;Check if language is what we expect
StrCmp $LANG "russian" 0 noteq
DetailPrint "Your game language is Russian." DetailPrint "Your game language is Russian."
${Else} goto end
noteq:
DetailPrint "Your game language is not Russian." DetailPrint "Your game language is not Russian."
MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your game does not seem to be installed in Russian. Are you sure you want to install the Russian language pack anyway?" IDYES true IDNO false MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your game does not seem to be installed in Russian. Are you sure you want to install the Russian language pack anyway?" IDYES true IDNO false
true: true:
...@@ -38,7 +44,7 @@ Section ...@@ -38,7 +44,7 @@ Section
Abort Abort
next: next:
${EndIf} end:
;SectionIn RO ;Make it read-only ;SectionIn RO ;Make it read-only
SetOutPath $INSTDIR SetOutPath $INSTDIR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment