Commit Graph

42 Commits

Author SHA1 Message Date
Arseny Smirnov
427110b811 Minor
GitOrigin-RevId: fc78a152bf587172f9c06a3b6af2030fcc6a4976
2018-12-26 19:35:07 +03:00
levlam
51eec319b8 Fix some includes.
GitOrigin-RevId: 4c81e2fd0101f3c5bb23912681e7d02a60da5622
2018-10-28 20:30:47 +03:00
levlam
08f04112af Fix calling Localization methods before authorization.
GitOrigin-RevId: 49ab08469f8e67b788fdb8fbe8c28514dd85e488
2018-10-08 15:01:09 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
2b34a6befa Ignore invalid strings in the database.
GitOrigin-RevId: 46d75ea61a1ab03d2f9540f001652ff7c08cd44c
2018-09-07 19:12:48 +03:00
levlam
15856c0272 Local cache of language pack list.
GitOrigin-RevId: bb4e7cbbd82cee7367cfe60678782e0ff9563e1b
2018-09-04 15:01:08 +03:00
levlam
ad26781fbc Update language pack API.
GitOrigin-RevId: 252723bc424afb8e0eb3c1647198e302b23e10db
2018-09-04 04:29:26 +03:00
levlam
3022046858 Add td_api::editCustomLanguageInfo.
GitOrigin-RevId: df4919a0b4b781751be4f6eb60063ddd48560741
2018-08-31 20:18:12 +03:00
levlam
d8f66f8a8e Minor fixes.
GitOrigin-RevId: 01b7c4015a8a4ee30c06b977363889d38a65bfd4
2018-08-26 11:08:45 +03:00
levlam
d76734ea73 Fix warnings.
GitOrigin-RevId: 0ba63a483c0c765e5d4889275d0ac4598be12fd1
2018-08-24 16:16:13 +03:00
levlam
3c34179234 Add various sanity checks to language packs manager.
GitOrigin-RevId: c7fa6f88415bdefe4da589a33d28429f824d551c
2018-08-24 05:26:19 +03:00
levlam
a1436a11f2 Preload lanfuage pack after it was chosen, even it is empty.
GitOrigin-RevId: 57f32bbf230e7dae2d33c2a587ecceb4d0d8282e
2018-08-24 04:57:52 +03:00
levlam
bcadd6a459 Unite requests for getting full language pack.
GitOrigin-RevId: 401ccd4168f56c555af1a7827384395dcf906fc0
2018-08-24 04:53:14 +03:00
levlam
4238f28a19 Add td_api::getPreferredCountryLanguage.
GitOrigin-RevId: a7abb6ac1b702292216fdf046b07af92fce99d65
2018-08-24 01:02:59 +03:00
levlam
06d04c8652 Fix languagePackStringValueDeleted.
GitOrigin-RevId: 58e01c920bb8e6716974c8d5cd68e27c82ab0d03
2018-08-23 16:13:15 +03:00
levlam
e9db5b90b2 Renew language strings just after it is set.
GitOrigin-RevId: d1f65f9128a6fce8fe46f92f26eb403351f22bf3
2018-08-23 03:53:59 +03:00
levlam
3ac0116988 Calculate key count for each language.
GitOrigin-RevId: aad64d5cecb70f10e3a1cd013b58c7183ad67d31
2018-08-23 03:45:04 +03:00
levlam
0300c3387e Better td_api::languagePackString.
GitOrigin-RevId: 1d65914ecd09584ae58b3a57a9f59c5ecb34dea5
2018-08-23 00:29:26 +03:00
levlam
7e45ca25f7 Add td_api::setCustomLanguageString.
GitOrigin-RevId: 0f4b7a531bacd9ab8eae0b8da631fe53dbaf1c7c
2018-08-22 23:11:54 +03:00
levlam
c12ed8d9cc Improve logging.
GitOrigin-RevId: b361ebec579228514f4531465144d49aeb2cd7b5
2018-08-22 04:04:09 +03:00
levlam
74189f89a6 Fix saving custom languages to database.
GitOrigin-RevId: 45aed87e231b6646e72bfe03a53cfe81dc211510
2018-08-20 01:03:03 +03:00
levlam
208633bbce Update layer 85.
GitOrigin-RevId: 6a3346c14e35faa39bcbe9a47d1edd92f7ac1a34
2018-08-20 00:28:43 +03:00
levlam
ee8d7a94ec Return custom language packs in getLanguagePackInfo.
GitOrigin-RevId: 77ef71acb97f85b4bf71c8966d8c0200e4b122d3
2018-08-06 20:18:28 +03:00
levlam
7c145a412b Custom language packs support.
GitOrigin-RevId: e7f76319dae5be3e20f81b41a0226e5f96f91ba1
2018-08-06 17:22:22 +03:00
levlam
e691803f21 More robust check_language_code_name.
GitOrigin-RevId: 43576730594d92b63eddc6c5408126a8bdf0c1f1
2018-08-01 02:34:59 +03:00
levlam
bd726dd4a2 Fix warning.
GitOrigin-RevId: 37d3ab8ee20d5fd4dc1e0b832847bd7effb19ff3
2018-07-24 03:13:24 +03:00
levlam
4717e5529a Add td_api::getLanguagePackString.
GitOrigin-RevId: 37ee2203264bb78ed3de88c21350a99212d89c3e
2018-07-23 20:29:14 +03:00
levlam
5e12e43b06 Load language pack strings from database.
GitOrigin-RevId: 47048d4712b6259d17a1dbadeb7b722d5dbbe809
2018-07-23 14:45:31 +03:00
levlam
7c183449a8 Save language packs to database.
GitOrigin-RevId: 2c40013068881e3170821585c25d29edcc78528c
2018-07-22 20:22:19 +03:00
levlam
9b6382d5d0 Check language_pack and language_code for validness.
GitOrigin-RevId: bc4907a06f74af8bdda9e8bdec82e7a3ce788580
2018-07-22 03:29:48 +03:00
levlam
77f3b9d400 Save only SqliteDb in LanguageDatabase.
GitOrigin-RevId: 7bac17996ad17d9e895a4fb21ed41d53f77a8539
2018-07-22 01:59:13 +03:00
levlam
e8f4c31586 Open language database.
GitOrigin-RevId: 9765471da4bae835d7159ca90aa99106a251b654
2018-07-20 20:50:38 +03:00
levlam
92c04286e3 Add language_pack_database option.
GitOrigin-RevId: 99f4b3f75f396d5b25287f4a98bae2dfdda9df00
2018-07-20 16:15:19 +03:00
levlam
6ca79487e2 Clear language pack info when all language pack managers are closed.
GitOrigin-RevId: 2c08722e00ae6209fb90f912b9265ce30bc3aad6
2018-07-19 01:14:20 +03:00
levlam
b0dfc088ae Fix CE.
GitOrigin-RevId: 6117160e2ee0045bb0c7dc8e3e048a5aae2626f1
2018-07-17 16:49:57 +03:00
levlam
1aa94575e8 Minor fixes.
GitOrigin-RevId: 33b0f159e7003d7b9dce28033a7e90169a9421bc
2018-07-17 14:27:24 +03:00
levlam
e819a0ed56 Support for language pack updatimg. td_api::updateLanguagePack.
GitOrigin-RevId: edc3bf65914b73d168d33eea38ff05cc2efd80ec
2018-07-17 05:58:34 +03:00
levlam
3a2ef50f91 Save only one copy of a key in a language pack.
GitOrigin-RevId: dc6446d597b90be974d7b18cadd2a79a0f0bd4ae
2018-07-06 02:42:25 +03:00
levlam
08db51cdce In-memory thread-safe cache for language pack strings.
GitOrigin-RevId: 71dc10a925f1000590501c4ddfc307806e242e51
2018-07-05 21:28:11 +03:00
levlam
f3aaff1e1a Pass language_pack, language_code and language_pack_version to LanguagePackManager.
GitOrigin-RevId: ba4be396d4da14a3169544d25ccb9850dbb9077a
2018-07-05 03:52:58 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
b28ec40407 LanguagePackManager draft. getLanguagePack, getLanguagePackStrings methods.
GitOrigin-RevId: 959e1fd4a76eb5005d8a53c3e88abb3054fb9a5e
2018-07-03 20:28:00 +03:00