Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7880003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:02:23+00:00 2026-06-03T04:02:23+00:00

I am trying to solve a tricky problem. I am creating a project, which

  • 0

I am trying to solve a tricky problem.

I am creating a project, which requires more than one language. So I have created files for all the languages, with an array of the language.

Now the problem is, I am using my own MVC system.

Basically, in my init file, I want to include a language file, which include the correct language, that works perfectly.

The problem appears, when I wanna show it in a view.

When I have my controller call the view class and render the view, it is in a class, making the variables outside the class unavailable.

I can solve this problem by including my language file, in the view renderer class, but since I sometimes need to set the variables in a model, its not working.

Anyone have some ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:02:25+00:00Added an answer on June 3, 2026 at 4:02 am

    Possibly the easiest way is to make the language variable global: In your included language file, use

    global $LANGUAGE;
    $LANGUAGE=array(
      ...
    );
    

    and start your view methods with global $LANGUAGE; also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to solve my heroku problem which it seems to have problem
Trying to solve a problem with templatetags. I have two templatetags: @register.inclusion_tag('directory/_alphabet.html') def alphabet_list(names):
I am trying to solve this problem. I have a series of SELECT statements
I'm trying to solve a tricky problem in Google Maps (api V3) Works nicely:
I've got a rather tricky problem that I've been trying to solve for the
Here's the coding problem I am trying to solve... I have a base class,
I am trying to solve a tricky math problem, in a cocos2d for iphone
I'm trying to solve the following problem: I have a download button that when
The title for this one was quite tricky. I'm trying to solve a scenario,
Trying to solve that problem, but no luck for hours... I have var screen1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.