Jump to content

Search the Community

Showing results for tags 'multilingual'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 11 results

  1. Hi all, I need help creating link in CK editor that would target my translated page, so it depends on what language user has selected. something like: <a href="?id=1450">view all</a> would target: <a href="en/onion/">Onion</a> <a href="de/zwiebel"></a> depending on user defined language. Thank you
  2. Hi all, i'm running into a funny little issue i'm working on a multilingual website, default is English, second language French in this website i've a form for visitors to submit an event, title, date and so on, when they submit the event, it's stored into a personnal db table i've created a module in the admin where admins (well, of course ? ) can't validate or delete the submitted events, thanks to pw, it works like breeze except for one little thing ? when an admin validate an event, i use the pw api to create a page and fill all the new page fields, among which $p = new Page(); $p->of(false); .... $p->title = $titre; $titre being the title of the event submitted and retreived from the database the thing is that depending of the language of the admin it fills the title in English/the default language or in French if the admin language is French and what i'm looking for is to always fill the default language title whatever the admin language is, guess, to take advantage of the auto filling of other languages when the default one is filled Funny enough i've solved the opposite problem with a multilingual select form field, using $filters = $fieldtypes->get('FieldtypeOptions')->getOptions('filtres'); foreach($filters as $f): ... echo $f->title; // it always echo the default language option title // using this echo $liso == 'fr' ? $f->title1019 : $f->title; // i've got the right select options titles displayed in the select // of course, $liso is defined in the _init.php $langid = $user->language->id; $langiso = array(1017 => 'en', 1019 => 'fr'); $liso = $langiso[$langid]; in case anybody has an idea about this page creation ? i keep searching have a nice day chris
  3. Hi all, first of all, as it's my first post here, thanks so much for this incredible CMS, thanks for all my question i've found answers here without even asking them and, of course, i can't say thanks enough to Ryan incredible job... i'm currently working on a bilingual website (pw 3.0.165 php 7.2), funny enough (i'm french), this time default language is english and the second one french but i think that doesn't matter... this website stores events and i have an page having itself all the events as hidden chidren pages, template for an event is... un_event with many fields, some of them bilingual as i'm supposed to display the number of events available on all the pages at different places ("see the xx events" with a link to the event page) in my _init.php file i've set a count of the one_event pages and this is where the funny thing is $nevents = $pages->count('template=un_event, include=hidden'); // in the default language see the <?php echo $nevents; ?> language works fine // in french $nevents is 0 $nevents = $pages->count('template=un_event, include=all'); // works fine in both languages but implies that even unpublished pages would be taken in account just to be complete, same behaviour with count($pages->get(1032)->children) count($pages->find('template=un_event, include=hidden')) and so on, in english, correct number as the result, in french 0 as a test, wondering if it was the fact that this was in the _init.php file, same thing if i use the same code on top of a page (all my files have the namespace processwire statement on top, i'm essentially a php guy ?) other test, i've done the same thing but setting all the one_event pages as visible (not hidden), same result is there something i haven't undestood or have forgotten with this all/hidden option when it comes to multilingual websites? probably ? have a nice day chris
  4. I have just published my first PW multi-lingual site. I'm not understanding the following message and the server locale function Warning: your server locale is undefined and may cause issues. Please translate the “C” locale setting for each language to the proper locale in /wire/modules/LanguageSupport/LanguageSupport.module (shortcuts provided below): • English • Français • Deutsch • Español • Italiano For example, the locale setting for US English might be: en_US.UTF-8 Is it just a case to populate each languages "C" field with an appropriate string? IE English C field: en.UTF-8 Francais C fieldn: fr_FR.UTF-8 Deutsh C field: en.UTF-8 Espanol C field: es_ES.UTF-8 Italiano C field: it_IT.UTF-8
  5. I was trying to fix an error earlier which was preventing a series of if statements from working. Basically I have a button called "Product Drawing" which needs localising depending on the current language session. Eventually got it working - I had a bracket in the wrong place. Curious as to why both these work though. On the sample below. each echo is surrounded by curly braces. <?php if ($page->files->count()) foreach($page->files->findTag('drawing') as $file) { if($user->language->name == 'default') {echo "<a href='$file->url' class='uk-button uk-button-primary'>Product drawing</a>";} if($user->language->name == 'french') {echo "<a href='$file->url' class='uk-button uk-button-primary'>Le plan du produit</a>";} if($user->language->name == 'german') {echo "<a href='$file->url' class='uk-button uk-button-primary'>Produktzeichnung</a>";} if($user->language->name == 'spanish') {echo "<a href='$file->url' class='uk-button uk-button-primary'>El dibujo del producto</a>";} if($user->language->name == 'italian') {echo "<a href='$file->url' class='uk-button uk-button-primary'>Il disegno del prodotto</a>";} } ?> On the sample below, there are no curly braces around the echo <?php if ($page->files->count()) foreach($page->files->findTag('breakingreport') as $file) { if($user->language->name == 'default') echo "<a href='$file->url' class='uk-button uk-button-primary'>Breaking strain report</a>"; if($user->language->name == 'french') echo "<a href='$file->url' class='uk-button uk-button-primary'>Le test de rupture</a>"; if($user->language->name == 'german') echo "<a href='$file->url' class='uk-button uk-button-primary'>Bruchfestigkeit bericht</a>"; if($user->language->name == 'spanish') echo "<a href='$file->url' class='uk-button uk-button-primary'>Informe resistencia</a>"; if($user->language->name == 'italian') echo "<a href='$file->url' class='uk-button uk-button-primary'>La rottura rapporto ceppo</a>"; } ?> Should the second piece work?
  6. A new band website for the German electronic avant-garde band DEINE LAKAIEN. The idea was to make this an introduction website for media and new listeners. For in-depth information, the website is accompanied by another new ProcessWire website (with an integrated xenforo forum) for the fanclub: colour-ize.com. and the label website chrom.de. All three websites use the same UI and re-occurring elements (while preserving a unique look), so people find their way around easily. Design/programming details: It was tried to make the dark look (which is the band CI) feeling modern and artistic (avoiding a Nineties look which so many dark themed websites have). The website is built in my spare time in 5 weeks thanks to the ease of ProcessWire 3 and is fully responsive (using uikit and Hype). ProcessWire's new language features were more than welcome to make language management a breeze (People coming from WordPress know what I mean). The backend is build in a way that non-techies (band, volunteer translators, fanclub, booking) can handle the CMS without needing much support and knowledge of SEO. Everything is explained or almost self-explanatory. And the complex internal link-building is done either fully automatic or half automatic.
  7. I 've got 2 languages let's say default and german and I am using multilingual fields: Is there a way to disable fallback to default language url if german is not active for a page ? Is there a way to have active only the german language for some pages ? example.com/mypage redirects to example.com/default/mypage, can I disable that ?
  8. Dear all I have created a website for a local newspaper and I am trying to make its search field to work using as input greek words (letters) but in vain. I tried to figure out what is going on and even to borrow any idea from the recent multilingual profile which is optional during new installations...but also on this one I tried to search english or suomi or deutsch words but neither it, was functioning.... I would much appreciated your kind assistance and support
  9. I have installed ProcessWire 2.3 and bought FormBuilder. I have multilingual website and would need to create forms with multilingual placeholders and labels. I could not figure out how to do this by myself. Any help would be appreciated greatly!
  10. Here is a recent site done in processwire: http://licoriceensemble.com/ modules used include formbuilder procache cropimage version control for text fields after save actions based on a template by the great team at Elemis.
  11. Hello, I'm new to processwire and trying to build a multilingual (Japanese-English) website. Installation was done and multilingual feature is nicely working. Thank you for this great CMS! My question is about the use of "Field-Template Context" discussed in this topic. Is there a way to display context-field-labels set by template on front-end? For example, if there's a field like; field name = price default label = price /default label (ja) = price-ja label in templateA = shipping / label in templateA (ja) = shipping-ja then how I can display the label "shipping" and "shipping-ja"on the pages that use templateA?
×
×
  • Create New...