Commit Graph

50 Commits

Author SHA1 Message Date
Benau
9c3aae554e Remove fribidi and tinygettext in server only build 2018-07-07 01:22:26 +08:00
Benau
6536a311b3 Allow logging save only to a file 2018-02-27 13:22:58 +08:00
Deve
bcb452f76b Add missing languages to tinygettext 2017-11-02 22:17:57 +01:00
Deve
9fe805f5f8 Avoid tinygettext warning 2017-10-25 23:52:35 +02:00
Deve
ce0a7bde84 Correct the rule for Polish plural forms.
It's already fixed in transifex.
2017-05-25 16:17:38 +02:00
auria.mg
ad092f0213 Add missing language 2017-04-11 18:42:32 -04:00
Deve
a40fd4cde9 Handle new Polish format in tinygettext.
It's PITA because they broke it at it doesn't look that they are going to do something with it.

The plural form for number 14 is broken because the condition is bad. It should be n%100>14 instead of n%100>=14. In the past it was using 3rd form for numbers 12, 13, 14 and it's the proper form for these numbers. The new format uses 2nd form for number 14.

Moreover the condition for third form is just a negation of the first and second form, so that the 4th form actually never happens.

Also the condition for 3rd form is ambiguous. Should it be
(n!=1 && (n%10>=0 && n%10<=1)) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14)
or maybe
n!=1 && ((n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14))

Based on Unicode plural rules, the 4th form should be used for floating point numbers, but it's not supported by tinygettext anyway.

In short, handle the new format in the same way as it was before, so that the 4th form is useless, but at least everything works properly.
2017-02-06 20:39:30 +01:00
hiker
6d0ad4a4fe Fixed compiler warning. 2016-07-27 08:26:41 +10:00
Benau
8a9168a024 Remove the hard-coded localized name in language.cpp 2016-03-13 10:25:26 +08:00
Benau
70d5114dd7 Display localized name instead of English translation 2016-03-05 09:49:03 +08:00
Benau
f0abbad937 Fix plural forms 2015-12-14 02:56:16 +08:00
hiker
5c0f71ad07 Fixed names utf8ToWide and wideToUtf8; added convenience functions
taking std:;string and core::stringw as parameter (removed .c_str()
in many function calls).
2015-11-26 08:56:03 +11:00
Benau
3a5ec83ae9 Basic render of text using freetype
This is a testing version of stk using freetype

It enable better arabic font display with less blurred glyph to all fonts thanks to hinting provide by freetype.

TODO: billboard text
2015-10-04 11:59:44 +08:00
deve
75c1f02615 Restore using unique_ptr instead of auto_ptr in tinygettext.
It fixes compiler warnings on gcc 5.1 due to auto_ptr deprecation. It also makes our tinygettext fork closer to the upstream sources. And we use c++11 in other places anyway.
2015-08-06 13:54:11 +02:00
Flakebi
fbf26df23d Merge branch 'master' into fixes
Conflicts:
	src/graphics/2dutils.cpp
	src/graphics/graphics_restrictions.cpp
	src/graphics/render_skybox.cpp
	src/graphics/rtts.hpp
2015-07-03 15:29:53 +02:00
Marianne Gagnon
0fdc7a2d98 Use plural form for resolution change message, fixes #2219. ALso fix crash in tinygettext code handling plural forms 2015-06-22 19:26:20 -04:00
hiker
ddcd6f9ca3 Removed empty files. 2015-04-03 00:05:47 +11:00
hiker
fb58e4b3b3 Use STK's log function in tinyugettext (so all errors/warnings
are logged to stdout.log).
2015-04-02 23:59:55 +11:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
Flakebi
e5abf4cec3 Merge branch 'origin/master' into fixes 2015-03-08 01:16:51 +01:00
hiker
b338a68eb4 Fix #1984 (countries in lower case were not when compared with upper
case countries).
2015-02-23 08:32:16 +11:00
Flakebi
32a044e292 Fix some clang warnings and bugs 2015-02-04 18:30:27 +01:00
Deve
f2a738f3d9 Fixed problems with non-supported languages.
These language files such as "sco.po" or "jbo.po" weren't ignored on STK side and they were displayed in languages list without a name.
2015-02-02 19:13:40 +01:00
deve
ab01161c28 Check more plural forms formats.
Launchpad atm. returns plural forms format without parentheses. We can just check both cases - with and without parentheses.
2015-01-30 11:40:33 +01:00
leper
96220966ec Add plural forms for Gaelic. 2015-01-03 00:25:53 +01:00
hiker
006a7f95c9 Cherrypicked pull request #1743 (cppcheck performance fixes). 2014-12-01 15:14:27 +11:00
hiker
ad20635cce Applied patch for #600 (support 64 bit compilation on windows). 2014-09-23 14:41:32 +10:00
konstin
47deab4614 commenting out an unused function which only throws deprecation warnings 2014-09-18 02:19:26 +02:00
auria
4c2c76088a Change pt-BR name to be more accurate
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-28 02:09:08 +00:00
hikerstk
c450c97472 Allowed the music directory to be external. Renamed
getMusicFile to searchMusic and getTextureFile to
searchTexture. Removed m_root_dir from file_manager.
Added convenience function getTexture to irr_driver
which takes an asset type, so now less code is needed
to load textures (though that's proably not used
everywhere yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-18 22:29:08 +00:00
hikerstk
8247f73604 Replaced tabs with spaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 12:52:39 +00:00
hikerstk
c5b8732087 Probably biggest commit (in terms of number of files) ever -
updated the (c) line of all files to -2013, added missing (c), 
changed format in some cases so that it will be easier in
the future to change them by script. No actualy code change.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-15 11:43:21 +00:00
auria
35d3807904 Add missing includes for some recent compilers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-24 00:29:05 +00:00
curaga
7acada712e tinygettext const fix
This moves ~8kb of writable data to RO, and improves optimization.
There is no need for the initial array to be writable anyhow.

The upstream project seems dead, so no point in submitting there.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-28 12:16:22 +00:00
curaga
57c3cbae3e Space cleanup pass on the headers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 19:47:39 +00:00
curaga
b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
b29b01107a Fixed VS2010 warnings (too long names when expanding
templates).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-09 13:45:51 +00:00
hikerstk
81d6353d7b Fixed typoes (see #897), thanks to bkerensa for the patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-26 05:22:25 +00:00
hikerstk
5d8c0d7be1 Added log infrastructure. Only a few files of STK are actually using it,
but all (f)printfs should be replaced. Note that I had to rename
tinygettext/log.?pp to avoid linking problems on windows.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:38:07 +00:00
auria
2ce395ba0d Don't hardcode player ID
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 22:14:27 +00:00
auria
bb4a079145 Remove old Norwegian language definitions after request from mailing list
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-13 22:30:38 +00:00
auria
5b073ca9d0 More work on 'thou shalt not include irrlicht.h everywhere carelessly', plus add debug checks to tinygettext in a desperate attempt to make STK Arthur_D-proof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8662 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:41:52 +00:00
hikerstk
a638dd5867 Fixed ticket #168 (could not switch between traditional and simplified
Chinese). This only happens on case insensitive file systems (where
the name of the .po files are returned in lowercase, meaning the
country part is lower case as well and therefore not recognised).
This patch corresponds to 8337 and 8341 on 0.7.1 branch.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-14 02:07:27 +00:00
auria
ea060b7581 Add fallback support in tinygettext, fixing languages like fr_CA, which relies on fr
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 22:34:25 +00:00
hikerstk
8ae5d8e5f3 Tinygettext now works with windows.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 23:43:26 +00:00
auria
090fc12b5c Kill iconv
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7956 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 22:37:05 +00:00
auria
6b30d89282 More work on tinygettext
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7943 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:18:04 +00:00
auria
d3604d050c Make tinygettext work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:05:25 +00:00
hikerstk
00cfa448fa Use STK's file manager for listing files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 00:53:10 +00:00
hikerstk
15241ef88e Added tinygettext source. They compile on Linux atm, but are not used
yet. stk_file_system.?pp atm is just unix_file_system.?pp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/tinygettext@7911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 00:31:53 +00:00