Sacred Posted July 27, 2009 Report Share Posted July 27, 2009 ok this is really pissing me off i gave up on creating a stupid lang file for my application ill explain the steps i have made with my application so far i created the files dmin\applications_addon\other\appname extensions modules_admin modules_public xml and the files inside them as well now in the XML folder there is only 2 files i created information and version right now i want to add the lang keys i have used in my public_module files as michael told me i can create it under cache\lang_cache\master_lang but i found out that i do n ot have master _lang whatsoever in my files i only got cache\lang_cache\1 so i created them there myapp_admin_myapp.php myapp_public_myapp.php and heres the content of these files <?php $lang = array( 'no_name' => "You Must Add a Name", 'no_email' => "You must add an E-mail", 'no_msg' => "You must add a message to send", 'no_subject' => "You must add title to your message", 'username' => "UserName: ", 'guest' => "Guest", 'm_ip' => "IP Address", 'm_email' => "Email Address", 'sent' => "Your message has been sent successfully", ); now after i created these files i went to MAnage Application and then i Installed my APP no wwhat shall i do next?! Quote Link to comment Share on other sites More sharing options...
Management Michael Posted July 27, 2009 Management Report Share Posted July 27, 2009 cache\lang_cache\master_lang is a folder you create not a file. Then you place your lang files in there. I do it this way to import my IPB2.3 language files into the database. When in_dev is on, you'll have a section called "Developer's Language Cache Import" where you can import those lang files into the database. See "Select the application language files to importThis will examine the cache/lang_cache/master_lang/ directory for {app}_language.php files and import them into the database." Then export them into your app xml folder. Quote Link to comment Share on other sites More sharing options...
Sacred Posted July 27, 2009 Author Report Share Posted July 27, 2009 okwe are half waythere the files are imported forAdmin lang i want then to show on Public this is how my public xml lang file look <?xml version="1.0" encoding="utf-8"?> <languageexport> <languagegroup/> </languageexport> whilemy admin XMLlang file looks like this <?xml version="1.0" encoding="utf-8"?> <languageexport> <languagegroup> <lang> <word_app>contact</word_app> <word_pack>admin_contact</word_pack> <word_key>sent</word_key> <word_default>Your message has been sent succefully</word_default> <word_custom/> <word_default_version>30008</word_default_version> <word_custom_version/> <word_js>0</word_js> </lang> </languagegroup> </languageexport> Why it is saved as admin_contact andnot as public_contact? Quote Link to comment Share on other sites More sharing options...
Management Michael Posted July 27, 2009 Management Report Share Posted July 27, 2009 So all the words were imported correctly? In the apps tab, it has them named correct public_app and admin_app? Quote Link to comment Share on other sites More sharing options...
Sacred Posted July 27, 2009 Author Report Share Posted July 27, 2009 no idea why it has language Quote Link to comment Share on other sites More sharing options...
Sacred Posted July 27, 2009 Author Report Share Posted July 27, 2009 i have added contact_langguage.php inmaster_lang as you said and when click import then export it created admin_contact lang but it doesnt create public_contact Quote Link to comment Share on other sites More sharing options...
Sacred Posted July 27, 2009 Author Report Share Posted July 27, 2009 nvm i copied themmanually to public lang xml Quote Link to comment Share on other sites More sharing options...
Management Michael Posted July 27, 2009 Management Report Share Posted July 27, 2009 i have added contact_langguage.php inmaster_lang as you said and when click import then export it created admin_contact lang but it doesnt create public_contact That could be a bug then, I've never had that happen. I think Matt is working on an external way to manage the languages, outside of the AdminCP. Quote Link to comment Share on other sites More sharing options...
Martin A. Posted July 28, 2009 Report Share Posted July 28, 2009 If they're saved as (myApp_)contact_language.php, that would explain it all. The syntax for the file name is; (appKey)_(admin|public)_(module|section|w/e).php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.