Jump to content

Krit65

Members
  • Posts

    4
  • Joined

  • Last visited

Krit65's Achievements

Newbie

Newbie (2/6)

2

Reputation

  1. This works for my needs. Did not know PW had this kind of translation function, was only using the multi-language fields. Thank you everyone!
  2. I tried all of the suggestions. But none of them seem to work. Thanks bernhard for the hint on how to help "myself". I will try to formulate what I am trying to do. So I have a website, that has 4 language versions. Default is czech. Right now, I am trying to translate all the new labels and what-not to the 4 languages. I am using a page with template term-translations . In this page are fields(Multi-language) that contain different phrases which I just inject into HTML code. The problem is that I have to set a label of a button to submit and reset a registration form, but these buttons are added into the form in the LoginRegister module. That is what I am trying to do. I am already using the multi-language system from PW, but now I hit a wall. (As you can see on the image below) Thank you for trying to help me. I am new to PW 😕 Krit
  3. Thanks for the quick reply @Gideon So. Already tried that... this does not show any errors but $terms is empty. Is it possible that there is a problem with the path to the pages? Because the URL of the page I am trying to translate is http://localhost/test/registrace/?register=1 instead of http://localhost/test/registrace/? Krit
  4. Hey everyone, I am trying to assign a page with template term-translation to variable $terms using the code below. This page is filled with fields that I use to translate certain texts. <?php namespace ProcessWire; $terms = $pages->find('template=term-translation'); This snippet is at the start of code in a .module file (specifically LoginRegister). The problem is that the $pages is null, or atleast that is what the error is telling me. Error: Exception: Call to a member function find() on null. I use this code in .php template files of my website and they work as they should. Does anyone have a solution to this problem. If this topic was already in here somewhere, then I am sorry, but I could not find it. Thanks for your help.
×
×
  • Create New...