Skip to content

Commit

Permalink
Cleanup the translation files (#1962)
Browse files Browse the repository at this point in the history
* Remove obsolete slapslay.phrases.txt

That plugin isn't in the stock arsenal since forever.

* Remove "Dead Player Rename" phrase

Unused since #313

* Remove nominations phrases from rockthevote

Those phrases were moved to their own nominations.phrases.txt

* Remove "Next Map" phrase from nextmap.phrases.txt

It was moved to basetriggers.phrases.txt

* Remove unused phrases from common.phrases.txt

Only "Slapped Player" was moved to funvotes.phrases.txt

* Delete empty phrase files

* Fix workflow python version selection

3.10 would select Python 3.1 and fail

* Deduplicate "Please select a map" phrase

Only keep it in the plugin.basecommands.txt file and remove it from the basevotes.phrases.txt.

Both plugins using the phrase load the basecommands phrases.

* Allow manual triggering of translations action

* Actually use the nextmap phrases

They were never referenced in the plugin. The "ago" phrase doesn't work the way it is and needs more rethinking.
  • Loading branch information
peace-maker committed Mar 29, 2023
1 parent 48150e0 commit 008fbf7
Show file tree
Hide file tree
Showing 234 changed files with 86 additions and 2,649 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/translations.yml
Expand Up @@ -5,14 +5,15 @@ on:
- master
paths:
- 'translations/**'
workflow_dispatch:
jobs:
update_translations:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
name: Setup Python 3.10
with:
python-version: 3.10
python-version: "3.10"

- name: Install Python dependencies
working-directory: tools/language_check
Expand All @@ -35,4 +36,3 @@ jobs:
run: |
python ./compare_translation_phrases.py
6 changes: 3 additions & 3 deletions plugins/nextmap.sp
Expand Up @@ -191,11 +191,11 @@ public Action Command_MapHistory(int client, int args)

int lastMapStartTime = g_CurrentMapStartTime;

PrintToConsole(client, "Map History:\n");
PrintToConsole(client, "Map : Started : Played Time : Reason for ending");
PrintToConsole(client, "%t:\n", "Map History");
PrintToConsole(client, "%t : %t : %t : %t", "Map", "Started", "Played Time", "Reason");

GetCurrentMap(mapName, sizeof(mapName));
PrintToConsole(client, "%02i. %s (Current Map)", 0, mapName);
PrintToConsole(client, "%02i. %s (%t)", 0, mapName, "Current Map");

for (int i=0; i<mapCount; i++)
{
Expand Down
5 changes: 0 additions & 5 deletions translations/ar/basevotes.phrases.txt
Expand Up @@ -80,11 +80,6 @@
"ar" "تصويت المابة في إستعمال"
}

"Please select a map"
{
"ar" "من فضلك إختر"
}

"Start the Vote"
{
"ar" "إبدأ التصويت"
Expand Down
20 changes: 0 additions & 20 deletions translations/ar/common.phrases.txt
Expand Up @@ -210,26 +210,6 @@
"ar" "اللاعب ليس بالداخل كاملا."
}

"Played Sound"
{
"ar" "شغل الصوت على اللاعب '{1}'"
}

"Slapped player"
{
"ar" "صفع اللاعب '{1}'"
}

"Slayed player"
{
"ar" "قتل اللاعب '{1}'"
}

"Kicked player"
{
"ar" "إطرد اللاعب '{1}'"
}

"Cannot participate in vote"
{
"ar" "لا يمكنك المشاركة في هذا التصويت."
Expand Down
5 changes: 0 additions & 5 deletions translations/ar/nextmap.phrases.txt
@@ -1,10 +1,5 @@
"Phrases"
{
"Next Map"
{
"ar" "الخريطة الآتية: {1}"
}

"Map History"
{
"ar" "تاريخ الخرائط"
Expand Down
5 changes: 0 additions & 5 deletions translations/ar/playercommands.phrases.txt
Expand Up @@ -40,9 +40,4 @@
"ar" "غير إسم اللاعب"
}

"Dead Player Rename"
{
"ar" "{1} سيتم تغيير إسمه الدور الآتي."
}

}
5 changes: 5 additions & 0 deletions translations/ar/plugin.basecommands.txt
Expand Up @@ -125,4 +125,9 @@
"ar" "طرد {1} (السبب: {2})."
}

"Please select a map"
{
"ar" "من فضلك إختر"
}

}
35 changes: 0 additions & 35 deletions translations/ar/rockthevote.phrases.txt
Expand Up @@ -30,16 +30,6 @@
"ar" "عدد اللاعبين المطليب غير موجود."
}

"Map Already In Vote"
{
"ar" "تم إختيار الخريطة '{1}' مسبقا."
}

"Map Inserted"
{
"ar" "تم إضافت الخريطة '{1}' إلى التصويت."
}

"RTV Requested"
{
"ar" "{1} يريد أن يبدأ التصويت.({2} تصويت. {3} لازمة)"
Expand All @@ -55,16 +45,6 @@
"ar" "إستئناف الخريطة الحالية"
}

"Already Nominated"
{
"ar" "لقد إخترت خريطة مسبقا."
}

"Max Nominations"
{
"ar" "تم الوصول إلى العدد المحدود للإختيار."
}

"Selected Map"
{
"ar" "{1} إختار {2}"
Expand All @@ -85,19 +65,4 @@
"ar" "لقد أردت التصويت مسبقا.({1} تصويت، {1} لازمة)"
}

"Map Already Nominated"
{
"ar" "الخريطة التي أخترت تم إختيارها مسبقا."
}

"Map Nominated"
{
"ar" "{1} إختار الخريطة {2} للتصويت."
}

"Nominate Title"
{
"ar" "سم الخريطة."
}

}
5 changes: 0 additions & 5 deletions translations/basevotes.phrases.txt
Expand Up @@ -89,11 +89,6 @@
"en" "Confirm Vote"
}

"Please select a map"
{
"en" "Please select a map"
}

"Start the Vote"
{
"en" "Start the Vote"
Expand Down
3 changes: 0 additions & 3 deletions translations/bg/antiflood.phrases.txt

This file was deleted.

15 changes: 0 additions & 15 deletions translations/bg/common.phrases.txt
Expand Up @@ -140,21 +140,6 @@
"bg" "Избраният играч все още не е влязъл напълно в играта."
}

"Slapped player"
{
"bg" "Играчът {1} е шамаросан"
}

"Slayed player"
{
"bg" "Играчът {1} е убит"
}

"Kicked player"
{
"bg" "Играчът {1} е изритан"
}

"Cannot participate in vote"
{
"bg" "Не можете да участвате в това гласуване."
Expand Down
4 changes: 4 additions & 0 deletions translations/bg/funvotes.phrases.txt
@@ -1,3 +1,7 @@
"Phrases"
{
"Slayed player"
{
"bg" "Играчът {1} е убит"
}
}
5 changes: 0 additions & 5 deletions translations/bg/nextmap.phrases.txt
@@ -1,10 +1,5 @@
"Phrases"
{
"Next Map"
{
"bg" "Следваща карта: {1}"
}

"Map History"
{
"bg" "История на картите"
Expand Down
5 changes: 0 additions & 5 deletions translations/bg/playercommands.phrases.txt
Expand Up @@ -40,9 +40,4 @@
"bg" "Преименуване на играч"
}

"Dead Player Rename"
{
"bg" "{1} ще бъде преименуван следващия рунд."
}

}
3 changes: 0 additions & 3 deletions translations/bg/rockthevote.phrases.txt

This file was deleted.

3 changes: 0 additions & 3 deletions translations/bg/sounds.phrases.txt

This file was deleted.

3 changes: 0 additions & 3 deletions translations/bg/sqladmins.phrases.txt

This file was deleted.

5 changes: 0 additions & 5 deletions translations/chi/basevotes.phrases.txt
Expand Up @@ -80,11 +80,6 @@
"chi" "地图投票正被调用"
}

"Please select a map"
{
"chi" "请选择地图"
}

"Start the Vote"
{
"chi" "开始投票"
Expand Down
20 changes: 0 additions & 20 deletions translations/chi/common.phrases.txt
Expand Up @@ -210,26 +210,6 @@
"chi" "指定玩家尚未完全进入游戏."
}

"Played Sound"
{
"chi" "已播放声音给玩家 '{1}'"
}

"Slapped player"
{
"chi" "已拍打玩家 '{1}'"
}

"Slayed player"
{
"chi" "已处死玩家 '{1}'"
}

"Kicked player"
{
"chi" "已踢出玩家 '{1}'"
}

"Cannot participate in vote"
{
"chi" "您无法参与该项投票."
Expand Down
5 changes: 0 additions & 5 deletions translations/chi/nextmap.phrases.txt
@@ -1,10 +1,5 @@
"Phrases"
{
"Next Map"
{
"chi" "下一幅地图: {1}"
}

"Map History"
{
"chi" "地图历史纪录"
Expand Down
5 changes: 0 additions & 5 deletions translations/chi/playercommands.phrases.txt
Expand Up @@ -40,9 +40,4 @@
"chi" "玩家更名"
}

"Dead Player Rename"
{
"chi" "{1} 将会在下局被改名"
}

}
5 changes: 5 additions & 0 deletions translations/chi/plugin.basecommands.txt
Expand Up @@ -125,4 +125,9 @@
"chi" "踢出 {1} (理由: {2})"
}

"Please select a map"
{
"chi" "请选择地图"
}

}
35 changes: 0 additions & 35 deletions translations/chi/rockthevote.phrases.txt
Expand Up @@ -30,16 +30,6 @@
"chi" "未达所需人数下限."
}

"Map Already In Vote"
{
"chi" "地图 '{1}' 已在 RTV (滚动投票)列表中."
}

"Map Inserted"
{
"chi" "地图 '{1}' 加入了 RTV (滚动投票)."
}

"RTV Requested"
{
"chi" "{1} 要滚动投票. ({2} 票同意, 至少需要 {3} 票)"
Expand All @@ -55,16 +45,6 @@
"chi" "继续运行当前地图"
}

"Already Nominated"
{
"chi" "您已经提名过一张地图"
}

"Max Nominations"
{
"chi" "已达最大预订数"
}

"Selected Map"
{
"chi" "{1} 选了 {2}"
Expand All @@ -85,19 +65,4 @@
"chi" "更换地图为 {1}! 滚动投票已显示!"
}

"Map Already Nominated"
{
"chi" "您所选的地图已有人预订."
}

"Map Nominated"
{
"chi" "{1} 预订了地图 {2} 加入滚动投票."
}

"Nominate Title"
{
"chi" "预订地图:"
}

}
28 changes: 0 additions & 28 deletions translations/chi/slapslay.phrases.txt

This file was deleted.

0 comments on commit 008fbf7

Please sign in to comment.