Quantcast
Download
(1 Kb)
Download
Updated: 08/30/19 03:06 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:08/30/19 03:06 AM
Created:08/29/19 05:27 PM
Monthly downloads:26,432
Total downloads:26,684
Favorites:62
MD5:
5.1.5
LibTextDict  Popular! (More than 5000 hits)
Version: 1.1
by: cloudor [More]
Overview

LTD (LibTextDict) can be used to aid your i18n implementation.

Usage

1. Declare dependency in manifest txt file:
Code:
## DependsOn: LibTextDict
2. Define dict entries in i18n files i.e. zh.lua:
Lua Code:
  1. local put = LibTextDict("Your Addon Name").put
  2. put("Enabled","启用")
  3. put("Hello","你好,%s")

3. Load by key in your code (additional parameters is supported):
Lua Code:
  1. local text = LibTextDict("Your Addon Name").text
  2. local labelText1 = text('Enabled')
  3. local labelText2 = text('Hello', name)

SCM
$ git clone [email protected]:cloudor126/lua-eso-addon-ltd.git
v1.1
- Did some cleaning.

v1.0
- Initial share as a lib.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
1.0
1kB
08/29/19 05:27 PM


Post A Reply Comment Options
Unread 08/31/19, 05:23 PM  
cloudor
 
cloudor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 285
Uploads: 4
Re: Re: can't edit

Originally Posted by jerry_r0m
Originally Posted by jerry_r0m
I'm on a mac (i know i know, booooo), and even adding libtextdict it says it is disabled, and I'm unable to use the add-on.
I'll add, that I've checked the files in the screenshots to make sure it says what it needs to. It does, but in game it still says "disabled" next to LibTextDict
Can you provied some screenshots?
Report comment to moderator  
Reply With Quote
Unread 08/31/19, 05:09 PM  
cloudor
 
cloudor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 285
Uploads: 4
Originally Posted by sirinsidiator
While it's always nice to see new libraries, I have to ask, how is this better/different compared to LibGetText? From what I see it does exactly the same, just with different function names and minus the ability to be used with gettext translation tools?
Yes, they are quite similar. Actually LTD was a part of ActionDurationReminder for years and I have a preference for keeping my lua code auto-completable with luadoc, so when I decide to remove LibStub dependency and move all shipped libraries out of ActionDurationReminder I share this lib because I want to keep using it.

If LibGetText was published ealier I might never write LTD.
Report comment to moderator  
Reply With Quote
Unread 08/30/19, 05:23 PM  
jerry_r0m

Forum posts: 0
File comments: 2
Uploads: 0
Re: can't edit

Originally Posted by jerry_r0m
I'm on a mac (i know i know, booooo), and even adding libtextdict it says it is disabled, and I'm unable to use the add-on.
I'll add, that I've checked the files in the screenshots to make sure it says what it needs to. It does, but in game it still says "disabled" next to LibTextDict
Report comment to moderator  
Reply With Quote
Unread 08/30/19, 04:58 PM  
jerry_r0m

Forum posts: 0
File comments: 2
Uploads: 0
can't edit

I'm on a mac (i know i know, booooo), and even adding libtextdict it says it is disabled, and I'm unable to use the add-on.
Report comment to moderator  
Reply With Quote
Unread 08/30/19, 04:53 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1270
File comments: 791
Uploads: 34
While it's always nice to see new libraries, I have to ask, how is this better/different compared to LibGetText? From what I see it does exactly the same, just with different function names and minus the ability to be used with gettext translation tools?
__________________
Like what I do? Support me on Patreon!
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
Last edited by sirinsidiator : 08/30/19 at 04:54 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: