Module:Lang/doc: Difference between revisionsGive feedback
No edit summary |
Gammaton32 (talk | contribs) |
||
| Line 5: | Line 5: | ||
==get_string== | ==get_string== | ||
Localizes a given string to the current language, i.e. [[Data:Lang_en.json]] for english. | Localizes a given string to the current language, i.e. [[Data:Lang_en.json]] for english. | ||
Note: If you need to get a string that uses a function referenced in another Data page, use the <code>process_variables</code> function from [[Module:Utilities]] instead. | |||
===Parameters=== | ===Parameters=== | ||
| Line 63: | Line 65: | ||
When calling by internal modules, the parameters cannot be named, and therefore have to be in order. Unused parameters before the last used parameter should be <code>nil</code>. Such as, <code>.get_string('hero_atlas', nil, 'en')</code> | When calling by internal modules, the parameters cannot be named, and therefore have to be in order. Unused parameters before the last used parameter should be <code>nil</code>. Such as, <code>.get_string('hero_atlas', nil, 'en')</code> | ||
==search_string== | ==search_string== | ||