Getting oh-so-closer to pnAPI!! Don't laugh, but...I'm proud of myself! ;) Mainly because I got rid of a whole slew of unnecessary if/else's and chopped about 20% of the code overall...which noticably sped up the mod...
Anyway...back to the task at hand...
I've got the language defines separated into their respective files (admin.php, user.php, etc...) and stored in .../pnlang/eng/... ok...the defines are parsing nicely, and this works out fine.
Question 1: If I translate the language files and drop them into their respective ../pnlang/xxx directories, will PN simply use the language that it needs for the site it's installed to (based on Admin -> Settings) ...or do I have to do something more within the code for that to work?
Question 2: Assuming PN uses mod language files based on the settings made in Admin -> Settings, I changed my test-site's language setting to a language that will not be included with the mod, but the text still displayed fine. Ok, cool...it didn't "break" the language, but obviously, there's some precedence... So, if the site's language isn't included with the mod, does PN just use the language files for the first valid language directory it comes across, or are languages prioritized behind the scenes? If there's a priority, which language gets it?
Thanks for another assist,
John
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Question about languages in a pnAPI mod...
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
1. As long as you've coded it properly, then you just need to add them..
2. I think it defaults to English, but I'm not sure.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
I'm not positive on #2, but #1 I'm pretty sure of..
--
Home Page | Find on Facebook | Follow on Twitter
- Moderated by:
- Support
