mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-27 23:02:32 +08:00
Add TRANSLATORS comments
This will better help the translators as they complete the difficult task of taking one language and finding commonality in another. Closes #165 Closes #161
This commit is contained in:
committed by
Blake Grotewold
parent
b3e094694b
commit
b512153d73
+2
-2
@@ -56,7 +56,7 @@ windows:
|
|||||||
poedit
|
poedit
|
||||||
|
|
||||||
- ubuntu:
|
- ubuntu:
|
||||||
pybabel extract -F babel.cfg script > lang/adarkroom.pot
|
pybabel extract -F babel.cfg -c "TRANSLATORS" script > lang/adarkroom.pot
|
||||||
windows:
|
windows:
|
||||||
use poedit
|
use poedit
|
||||||
Use menu "Cataloge"-> "New Catalog from POT file..."
|
Use menu "Cataloge"-> "New Catalog from POT file..."
|
||||||
@@ -101,7 +101,7 @@ To update from source without pot file need:
|
|||||||
*.js
|
*.js
|
||||||
|
|
||||||
Parser command:
|
Parser command:
|
||||||
xgettext --language=JavaScript --force-po -o %o %C %K %F
|
xgettext --language=JavaScript --force-po --add-comments=TRANSLATORS -o %o %C %K %F
|
||||||
|
|
||||||
Item in Keyword List:
|
Item in Keyword List:
|
||||||
-k%k
|
-k%k
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
'boxer': {
|
'boxer': {
|
||||||
name: _('boxer'),
|
name: _('boxer'),
|
||||||
desc: _('punches do more damage'),
|
desc: _('punches do more damage'),
|
||||||
|
/// TRANSLATORS : means with more force.
|
||||||
notify: _('learned to throw punches with purpose')
|
notify: _('learned to throw punches with purpose')
|
||||||
},
|
},
|
||||||
'martial artist': {
|
'martial artist': {
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
notify: _('learned to fight quite effectively without weapons')
|
notify: _('learned to fight quite effectively without weapons')
|
||||||
},
|
},
|
||||||
'unarmed master': {
|
'unarmed master': {
|
||||||
|
/// TRANSLATORS : master of unarmed combat
|
||||||
name: _('unarmed master'),
|
name: _('unarmed master'),
|
||||||
desc: _('punch twice as fast, and with even more force'),
|
desc: _('punch twice as fast, and with even more force'),
|
||||||
notify: _('learned to strike faster without weapons')
|
notify: _('learned to strike faster without weapons')
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ Events.Setpieces = {
|
|||||||
text: [
|
text: [
|
||||||
_('the body of a wanderer lies in a small cavern.'),
|
_('the body of a wanderer lies in a small cavern.'),
|
||||||
_("rot's been to work on it, and some of the pieces are missing."),
|
_("rot's been to work on it, and some of the pieces are missing."),
|
||||||
|
/// TRANSLATORS : 'it' is a rotting wanderer's body
|
||||||
_("can't tell what left it here.")
|
_("can't tell what left it here.")
|
||||||
],
|
],
|
||||||
loot: {
|
loot: {
|
||||||
@@ -1672,6 +1673,7 @@ Events.Setpieces = {
|
|||||||
'c4': {
|
'c4': {
|
||||||
text: [
|
text: [
|
||||||
_('looks like a camp of sorts up ahead.'),
|
_('looks like a camp of sorts up ahead.'),
|
||||||
|
/// TRANSLATORS : chainlink is a type of metal fence.
|
||||||
_('rusted chainlink is pulled across an alleyway.'),
|
_('rusted chainlink is pulled across an alleyway.'),
|
||||||
_('fires burn in the courtyard beyond.')
|
_('fires burn in the courtyard beyond.')
|
||||||
],
|
],
|
||||||
@@ -1723,6 +1725,7 @@ Events.Setpieces = {
|
|||||||
|
|
||||||
'c7': {
|
'c7': {
|
||||||
text: [
|
text: [
|
||||||
|
/// TRANSLATORS : squatters occupy abandoned dwellings they don't own.
|
||||||
_('more squatters are crowding around now.'),
|
_('more squatters are crowding around now.'),
|
||||||
_('someone throws a stone.')
|
_('someone throws a stone.')
|
||||||
],
|
],
|
||||||
@@ -2396,6 +2399,7 @@ Events.Setpieces = {
|
|||||||
|
|
||||||
'end3': {
|
'end3': {
|
||||||
text: [
|
text: [
|
||||||
|
/// TRANSLATORS : a platform in the subway
|
||||||
_('the tunnel opens up at another platform.'),
|
_('the tunnel opens up at another platform.'),
|
||||||
_('the walls are scorched from an old battle.'),
|
_('the walls are scorched from an old battle.'),
|
||||||
_('bodies and supplies from both sides litter the ground.')
|
_('bodies and supplies from both sides litter the ground.')
|
||||||
@@ -2837,6 +2841,7 @@ Events.Setpieces = {
|
|||||||
|
|
||||||
'end14': {
|
'end14': {
|
||||||
text: [
|
text: [
|
||||||
|
/// TRANSLATORS : warped means extremely disfigured.
|
||||||
_('the warped man lies dead.'),
|
_('the warped man lies dead.'),
|
||||||
_('the operating theatre has a lot of curious equipment.')
|
_('the operating theatre has a lot of curious equipment.')
|
||||||
],
|
],
|
||||||
@@ -3523,6 +3528,7 @@ Events.Setpieces = {
|
|||||||
_('a destroyed village lies in the dust.'),
|
_('a destroyed village lies in the dust.'),
|
||||||
_('charred bodies litter the ground.')
|
_('charred bodies litter the ground.')
|
||||||
],
|
],
|
||||||
|
/// TRANSLATORS : tang = strong metallic smell, wanderer afterburner = ship's engines
|
||||||
notification: _('the metallic tang of wanderer afterburner hangs in the air.'),
|
notification: _('the metallic tang of wanderer afterburner hangs in the air.'),
|
||||||
buttons: {
|
buttons: {
|
||||||
'enter': {
|
'enter': {
|
||||||
|
|||||||
+1
-1
@@ -415,7 +415,7 @@ var Outside = {
|
|||||||
Outside.updateVillageRow(k, $SM.get('game.buildings["'+k+'"]'), village);
|
Outside.updateVillageRow(k, $SM.get('game.buildings["'+k+'"]'), village);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// TRANSLATORS : pop is short for population.
|
||||||
population.text(_('pop ') + $SM.get('game.population') + '/' + this.getMaxPopulation());
|
population.text(_('pop ') + $SM.get('game.population') + '/' + this.getMaxPopulation());
|
||||||
|
|
||||||
var hasPeeps;
|
var hasPeeps;
|
||||||
|
|||||||
Reference in New Issue
Block a user