The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix translation path on Windows

These changes was commited to the Birdfont repository Sun, 21 Sep 2014 15:11:18 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 21 Sep 2014 15:11:18 +0000 (17:11 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 21 Sep 2014 15:11:18 +0000 (17:11 +0200)
commit 0fac2f52b9a212469b04b708371f298b0e6aa009
tree d660678d25c293eb78f3be1b732d2726aab70f1f
parent 443b4c0d538d661614c55b5ff943ef3f800bace5
Fix translation path on Windows

libbirdfont/SearchPaths.vala
--- a/libbirdfont/SearchPaths.vala +++ b/libbirdfont/SearchPaths.vala @@ -101,6 +101,11 @@ if (exists (f)) { return BirdFont.exec_path + "/Contents/Resources/locale"; } + + f = BirdFont.exec_path + "\\locale\\sv\\LC_MESSAGES\\birdfont.mo"; + if (exists (f)) { + return BirdFont.exec_path + "\\locale"; + } } f = "./build/locale/sv/LC_MESSAGES/birdfont.mo";