Skip to content

Commit 182dbf8

Browse files
committed
Translations
1 parent 3b32bbf commit 182dbf8

File tree

9 files changed

+343
-8
lines changed

9 files changed

+343
-8
lines changed

android/src/main/kotlin/ogz/tripeaks/android/AndroidLauncher.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
package ogz.tripeaks.android
22

33
import android.os.Bundle
4-
54
import com.badlogic.gdx.backends.android.AndroidApplication
65
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
76
import ogz.tripeaks.Main
87

98
/** Launches the Android application. */
109
class AndroidLauncher : AndroidApplication() {
10+
1111
override fun onCreate(savedInstanceState: Bundle?) {
1212
super.onCreate(savedInstanceState)
13-
// val layout = RelativeLayout(this)
14-
// layout.addView(initializeForView(Main(), AndroidApplicationConfiguration().apply {
15-
// useImmersiveMode = false
16-
// }))
17-
// setContentView(layout)
13+
// val layout = GridLayout(this).also {
14+
// it.columnCount = 1
15+
// it.rowCount = 1
16+
// }
17+
// val view = initializeForView(Main(), AndroidApplicationConfiguration().apply {
18+
// useImmersiveMode = false
19+
// }).also {
20+
// it.layoutParams = GridLayout.LayoutParams().also { it.setGravity(10) }
21+
// }
22+
// layout.addView(view)
23+
// setContentView(layout)
1824
initialize(Main(), AndroidApplicationConfiguration().apply {
1925
// Configure your application here.
2026
useImmersiveMode = true // Recommended, but not required.

assets/i8n/Bundle_ru.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ usedUndo=Вы {0,choice,0#не использовали "отменить" во
2929
won=Вы победили!
3030

3131
# v1.1
32+
# Courtesy of github.com/rellikmil Thanks!
3233
Blink=Мерцание
3334
Dissolve=Растворение
3435
FadeOut=Исчезание

assets/i8n/Bundle_zh_CN.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ statGames=游戏
3131
statLongestChain=最长连击
3232
statWins=
3333
statistics=统计数据
34+
35+
# Courtesy of github.com/xlucn. Thanks!
36+
Blink=闪烁
37+
Dissolve=溶解
38+
FadeOut=淡出
39+
about=关于
40+
cardAnimation=纸牌动画
41+
close=关闭
42+
decor=牌背图案

assets/ui/gnu_unifont_cjk16_2.fnt

Lines changed: 184 additions & 0 deletions
Large diffs are not rendered by default.
4.35 KB
Loading

core/src/main/kotlin/ogz/tripeaks/assets/Assets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ operator fun AssetManager.get(asset: TextureAtlasAssets) = getAsset<TextureAtlas
2626

2727
enum class FontAssets(val path: String) {
2828
GamePixels("ui/gamepixels.fnt"),
29-
UnifontCJK("ui/gnu_unifont_cjk16.fnt")
29+
UnifontCJK("ui/gnu_unifont_cjk16_2.fnt")
3030
}
3131

3232
fun AssetManager.load(asset: FontAssets) = load<BitmapFont>(asset.path)

core/src/main/kotlin/ogz/tripeaks/screens/stage/AboutDialog.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ class AboutDialog(skin: UiSkin, assets: AssetManager) : PopTable(skin) {
122122
row()
123123
add(ImageButton(uiSkin.iconLink).apply {
124124
getCell(getChild(0)).padTop(2f)
125-
add(Label(link, uiSkin)).padLeft(Constants.UI_HORIZONTAL_SPACING)
125+
add(
126+
Label(
127+
link,
128+
uiSkin,
129+
UiSkin.LATIN_LABEL_STYLE
130+
)
131+
).padLeft(Constants.UI_HORIZONTAL_SPACING)
126132
row()
127133
add(Image())
128134
add(Image(uiSkin.line)).fillX().padLeft(Constants.UI_HORIZONTAL_SPACING)

res/ckj2.bmfc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# AngelCode Bitmap Font Generator configuration file
2+
fileVersion=1
3+
4+
# font settings
5+
fontName=Ark Pixel 12px Proportional zh_
6+
fontFile=
7+
charSet=255
8+
fontSize=-12
9+
aa=1
10+
scaleH=100
11+
useSmoothing=0
12+
isBold=0
13+
isItalic=0
14+
useUnicode=1
15+
disableBoxChars=1
16+
outputInvalidCharGlyph=0
17+
dontIncludeKerningPairs=0
18+
useHinting=0
19+
renderFromOutline=0
20+
useClearType=1
21+
autoFitNumPages=0
22+
autoFitFontSizeMin=0
23+
autoFitFontSizeMax=0
24+
25+
# character alignment
26+
paddingDown=0
27+
paddingUp=0
28+
paddingRight=0
29+
paddingLeft=0
30+
spacingHoriz=1
31+
spacingVert=1
32+
useFixedHeight=0
33+
forceZero=0
34+
widthPaddingFactor=0.00
35+
36+
# output file
37+
outWidth=256
38+
outHeight=256
39+
outBitDepth=8
40+
fontDescFormat=0
41+
fourChnlPacked=0
42+
textureFormat=png
43+
textureCompression=0
44+
alphaChnl=0
45+
redChnl=4
46+
greenChnl=4
47+
blueChnl=4
48+
invA=0
49+
invR=0
50+
invG=0
51+
invB=0
52+
53+
# outline
54+
outlineThickness=0
55+
56+
# selected chars
57+
chars=32-126,12290,12295,19968,19971,19977,20004,20061,20102,20108,20116,20174,20320,20351,20445,20841
58+
chars=20843,20845,20986-20987,21033,21313,21315,21345,21462,21487,21518,22235,22238,22624,22810,22987
59+
chars=23384,23616,23792,24067,24320,24323,24335,24352,25103,25152,25277,25454,25968,26032,26159,26174
60+
chars=26263,26368,26377,26410,27169,27425,27493,27809,28040,28216,29260,29992,30334,30340,30707,31034
61+
chars=31354,32479,35745,36194,36208,36807,36820,36830,36864,36873,37324,38075,38144,38271,38646,39033
62+
chars=40657,40831,65281,65311
63+
64+
# imported icon images

res/unifont.bmfc

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# AngelCode Bitmap Font Generator configuration file
2+
fileVersion=1
3+
4+
# font settings
5+
fontName=Unifont
6+
fontFile=
7+
charSet=0
8+
fontSize=-16
9+
aa=1
10+
scaleH=100
11+
useSmoothing=0
12+
isBold=0
13+
isItalic=0
14+
useUnicode=1
15+
disableBoxChars=1
16+
outputInvalidCharGlyph=0
17+
dontIncludeKerningPairs=0
18+
useHinting=0
19+
renderFromOutline=0
20+
useClearType=1
21+
autoFitNumPages=0
22+
autoFitFontSizeMin=0
23+
autoFitFontSizeMax=0
24+
25+
# character alignment
26+
paddingDown=0
27+
paddingUp=0
28+
paddingRight=0
29+
paddingLeft=0
30+
spacingHoriz=1
31+
spacingVert=1
32+
useFixedHeight=0
33+
forceZero=0
34+
widthPaddingFactor=0.00
35+
36+
# output file
37+
outWidth=256
38+
outHeight=256
39+
outBitDepth=8
40+
fontDescFormat=0
41+
fourChnlPacked=0
42+
textureFormat=png
43+
textureCompression=0
44+
alphaChnl=0
45+
redChnl=4
46+
greenChnl=4
47+
blueChnl=4
48+
invA=0
49+
invR=0
50+
invG=0
51+
invB=0
52+
53+
# outline
54+
outlineThickness=0
55+
56+
# selected chars
57+
chars=35-59,63-90,95,97-122,8364,12290,12295,19968,19971,19977,20004,20061,20102,20108,20110,20116,20174
58+
chars=20320,20351,20445,20841,20843,20845,20851,20986-20987,21033,21160,21313,21315,21345,21462,21487
59+
chars=21518,22235,22238,22270,22534,22624,22810,22987,23384,23616,23792,24067,24320,24323,24335,24352
60+
chars=25103,25152,25277,25454,25764,25968,26032,26159,26174,26263,26368,26377,26410,26696,27169,27425
61+
chars=27493,27809,28040,28129,28216,28342,28865,29260,29992,30011,30334,30340,30707,31034,31354,32440
62+
chars=32479,32972,35299,35745,36194,36208,36807,36820,36830,36864,36873,37324,38075,38144,38271,38378
63+
chars=38381,38646,39033,40657,40831,65281,65311
64+
65+
# imported icon images

0 commit comments

Comments
 (0)