Aikar
4e6fa422c8
rework Locale refs to provide our own common table of locales
2017-07-25 01:11:02 -04:00
MiniDigger
fefd35804b
add german translations ( #65 )
2017-07-24 23:57:04 -05:00
Frank Kusmiruk
414594d136
Adding spanish translations ( #66 )
2017-07-24 23:53:51 -05:00
Aikar
95ef58ce87
add set default locale
2017-07-25 00:42:28 -04:00
Aikar
00d3837fd0
Fix another empty args issue for @Values and context
2017-07-24 22:55:28 -04:00
Aikar
3065dfbc1a
Support including the auto generated syntax in @Syntax overrides
2017-07-18 23:09:09 -04:00
Aikar
1f7a412783
process {@@i18n.strings} in all command replacements
2017-07-18 22:35:45 -04:00
Aikar
f3b8b6034e
Fix getCurrentCommandOperationContext() peek exception
2017-07-18 22:35:16 -04:00
Aikar
ebe7cbd2c0
process command replacements in messages
2017-07-18 21:54:56 -04:00
Aikar
ef3b844ffa
Move MessageFormatter stuff to base class using generics, readd default formatter G/S
2017-07-18 21:52:42 -04:00
Aikar
418bbd6fd9
Use generics on manager to understand impl types
...
Slight risk of API breakage but risk is minimal enough that I'm not bumping versions.
0.5.0 Migration guide suggested (Platform)CommandManager, which will set the generics for you.
Only if you stored the ref as the Abstract CommandManager would you now run into generic issues.
Also, cleaned up the sendMessage API's to not need Object now since we know the Generic type.
This is technically an API break, but considering Locales was only released last night and
the likelyhood someone overrode that method, is unlikey.
If you did, just fix the method signature! Sorry <3
2017-07-18 21:43:32 -04:00
Aikar
d24ae03b12
fix the format API's and add setFormat(type, i, color)
2017-07-18 08:31:35 -04:00
Aikar
b0ae0209c9
Load languages post locales construction
2017-07-18 00:11:13 -04:00
Aikar
b4539aa1ed
Open the Locales API!
2017-07-17 23:59:50 -04:00
Aikar
9ee590026f
add setFormat API's
2017-07-17 23:57:04 -04:00
Aikar
eec47ea701
add set/get format API
2017-07-17 23:44:33 -04:00
Aikar
1813dbe83c
support a default formatter
2017-07-17 23:42:37 -04:00
Aikar
e82b5ef9bd
Refactor supported languages and move MessageKeyProvider to co.a.locales
2017-07-17 23:25:30 -04:00
Aikar
668fa650ba
add some bukkit API's for loading YAML Locale
2017-07-17 23:02:14 -04:00
Aikar
4963db24b7
Update for the latest locales signature changes
2017-07-17 22:34:11 -04:00
Aikar
89d5e86823
Use per-platform Locales classes
2017-07-17 21:07:53 -04:00
Aikar
a20c2aecd2
make sendMessage public
2017-07-15 01:47:20 -04:00
Aikar
62df5e83b5
fix @Values bug on commands with no args
2017-07-14 02:20:44 -04:00
Aikar
efa684ce2c
add getter to RegisteredCommand.command
2017-07-14 01:52:01 -04:00
Aikar
6ffcafcd46
Restructure Precommand stuff and more command op context
2017-07-09 23:37:28 -05:00
Aikar
c05729df09
avoid using the locale scanning code until we can get that just right
2017-07-04 09:12:02 -05:00
Aikar
08dc044d09
Add a @nothing command completion
2017-07-03 23:30:04 -05:00
Aikar
c62c0298a2
Fix JB annotation deps
2017-07-03 22:56:02 -05:00
Aikar
dff336bd2a
fix message color formatting
2017-07-03 21:06:43 -05:00
Aikar
d2d0f22a07
use acf prefixes to msg keys
2017-07-03 19:04:31 -05:00
Aikar
08558d7538
go back to auto language scanning
2017-07-03 15:40:21 -05:00
Aikar
e6cbdf2eaf
Fix shading of guava
2017-07-03 15:40:00 -05:00
Aikar
1ee1fcb9b3
update locales stuff to latest manager to go around the auto locale detect
2017-07-03 03:55:54 -05:00
Aikar
f900a739df
Add Sponge CommandResult API/Context and move/add operation context
2017-07-03 02:35:34 -05:00
Aikar
b128908a77
Replace a bit of code duplication and misc cleanup
2017-07-03 00:02:43 -05:00
Aikar
d9652ba9eb
autoload message bundles based on plugin name
2017-07-02 14:27:44 -05:00
Aikar
8c545ce343
Expose current issuer and manager through thread locals
2017-07-01 23:47:27 -05:00
Aikar
8168122241
Massive i18n work, not fully finished set but resolves #53
2017-06-30 12:05:00 -05:00
Aikar
c9acb55a48
ton more I18N/Locales work, messages migrated!
2017-06-29 00:36:59 -04:00
Aikar
a93d1cf5bc
add MessageKey method to CommandIssuer and misc stuff
2017-06-28 23:02:23 -04:00
Aikar
c3b3a5f43a
Move Locale API's to the external Locales artifact/project
2017-06-28 22:44:15 -04:00
Aikar
12b5da35f4
Refactor the MessageFormatter to support any number of colors
2017-06-27 19:41:51 -04:00
Aikar
e51d3ddff4
Some more work on locale stuff
2017-06-27 18:09:38 -04:00
Aikar
cd109eb266
Implement Chat Formatting per platform
2017-06-27 00:24:05 -04:00
Aikar
2e493fcb49
Clean up logging code duplication
2017-06-26 23:12:48 -04:00
Aikar
f2e96ea244
Start of I18N work
2017-06-26 23:03:18 -04:00
Aikar
26daa86c5b
Remove guava cache map to fix 1.7 support - resolves #52
2017-06-22 23:08:34 -04:00
William Braecky
17996955e3
Fix Optional parameters being resolved ( #51 )
2017-06-22 09:27:29 -04:00
Aikar
6c374c78c2
Fix Boolean Optional check
2017-06-20 19:11:07 -04:00
Aikar
87995f03df
Add IssuerOnlyContextResolver, rename SenderAware (with back compat)
2017-06-18 15:21:08 -04:00