Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

no locales in one custom file and i dont know why

Asked Modified Viewed 1,816 times
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
asked
Senior Member

i have one file where i dont see locale. I have try different tghings but after the last updates (core updates to neweest version) i lost my locale in this file and i dont know why. Can anyone help me??? Thank you

here the complete file:

// Locale
$locale = fusion_get_locale("", FIGURELIB_LOCALE);
Edited by N/A on 09-08-2017 14:28,
0 replies

3 posts

C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

none? :( hmnnn
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Try a manual include old style instead then,
change figure_lib paths if wrong and it should work just fine.

// Check if a locale file is available that match the selected locale.
if (file_exists(INFUSIONS."figure_lib/locale/".LANGUAGE.".php")) {
// Load the locale file matching selection.
   include INFUSIONS."figure_lib/locale/".LANGUAGE.".php";
} else {
// Load the default locale file.
   include INFUSIONS."figure_lib/locale/English.php";
}
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

trhx i solved it guess

locale_figurelib.php this was my Problem

this is the correct code

// Check if a locale file is available that match the selected locale.
if (file_exists(INFUSIONS."figurelib/locale/".LANGUAGE.".php"wink) {
// Load the locale file matching selection.
include INFUSIONS."figurelib/locale/".LANGUAGE.".php";
} else {
// Load the default locale file.
include INFUSIONS."figurelib/locale/English/locale_figurelib.php";
}

someone is changed with new Version of PHPF
Edited by Catzenjaeger on 09-08-2017 15:03,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet