Jump to content
DevFuse Forums

Langues


Sacred

Recommended Posts

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?!

Link to comment
Share on other sites

  • Management

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Management

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...