Files
adarkroom/script/localization.js
T

30 lines
2.0 KiB
JavaScript
Raw Normal View History

2014-02-05 17:06:30 +01:00
(function(){
//only used for poedit to find translatable strings
2014-02-08 14:13:59 +01:00
var keywords = [ _('saved.'), _('wood'),_('builder'),_('teeth'),_('meat'),_('fur'), _('alien alloy'), _('bullets'),
2014-05-19 11:49:46 +02:00
_('charm'),_('leather'),_('iron'), _('steel'), _('coal'), _('enegy cell'),
2014-05-29 17:36:33 +08:00
_('torch'),_('medicine'),_('hunter'),_('trapper'),_('tanner'), _('grenade'), _('bolas'),
2014-02-05 17:06:30 +01:00
_("charcutier"),_('iron miner'),_('coal miner'), _('sulphur miner'), _('armourer'),
2014-02-09 13:13:05 +01:00
_('steelworker'),_('bait'),_('cured meat'), _('scales'), _('compass'), _('laser rifle'),
2014-02-07 18:26:03 +01:00
_('gatherer'),_('cloth'), _('scales'), _('cured meat'), _('thieves'),
2014-02-08 16:02:08 +01:00
_('not enough fur'), _('not enough wood'), _('not enough coal'), _('not enough iron'), _('not enough steel'), _('baited trap'),
2014-06-14 22:55:31 -04:00
_('not enough scales'),_('not enough cloth'), _('not enough teeth'), _('not enough leather'),
2014-02-08 16:02:08 +01:00
_('the compass points east.'), _('the compass points west.'), _('the compass points north.'), _('the compass points south.'),
_('the compass points northeast.'), _('the compass points northwest.'), _('the compass points southeast.'), _('the compass points southwest.')];
2014-02-05 17:06:30 +01:00
delete keywords;
//translate text in css by overriding attributes
$("<style>").text('\
div#stores:before{ content: \''+ _("stores") + '\'}\
div#weapons:before{ content: \''+ _("weapons") + '\'}\
div#buildBtns:before{ content: \''+ _("build:") + '\'}\
div#craftBtns:before{ content: \''+ _("craft:") + '\'}\
div#buyBtns:before{ content: \''+ _("buy:") + '\'}\
2014-02-07 18:26:03 +01:00
div#outfitting:before{ content: \''+ _("supplies:") + '\'}\
div#perks:before{ content: \''+ _("perks:") + '\'}\
div#lootButtons:before { content: \''+ _("take:") + '\'}\
2014-06-19 10:18:56 +03:00
div#dropMenu:before { content: \''+ _("drop:") + '\'}\
div#village.noHuts:before { content: \'' + _("forest") + '\'}\
div#village:before { content: \'' + _("village") + '\'}\
2014-02-05 17:06:30 +01:00
').appendTo($('head'));
2014-05-29 17:36:33 +08:00
})();