Jomres User Manual

Sidebar

Login Form

Remember Me
  • Forgot your username?
  • Forgot your password?
  • Home
  • Installation and Upgrading
  • Site Manager's Guide
  • Property Manager's Guide
  • Developer's Guide
  1. You are here:  
  2. Home
  3. Developer's Guide
  4. Customising Jomres
  5. Editing labels / languages
  6. Language files

Language files

Introduction

The Jomres language files can be found in /jomres/languages. The function calls look like this

 

jr_define('_JOMRES_COM_MR_SHOWPROFILES','Show profiles');


You could edit that string to

 

jr_define('_JOMRES_COM_MR_SHOWPROFILES','List users');


To change the button in the configuration panel from "Show profiles" to "List Users".

 

* Note, Jomres currently comes with 24 language files by default. These files are contributed back to the project by users of the software and as a result, apart from the English language files, they are invariably in different states of translation. This means that most of the non-English files will have some or many definitions which are still in their English form and it is the responsibility of the purchaser to ensure that the language file for their chosen language/languages suits their needs.

 

Discussion

There are quite a lot of language definitions in Jomres, somewhere in the region of 2000+. New language definitions are always added to the end of the language files which makes it easy for users who have upgraded to add their own definitions to the end of the file.

Whilst you can edit the language files, it's not the best way to translate Jomres, instead you should use the

 

Language menu administrator

Upgrading Jomres

If you edit the language files, then obviously you'll need to back up your customised language files before you upgrade. Existing Jomres language strings will have been overwritten if they are part of the core languages.

If you then use the upgraded version of Jomres and use a new feature or configuration area, you might see something like the string '_JOMRES_COM_MR_LISTTARIFF_TITLE' instead of where you would expect to see a label (eg "Tariffs"). This is because the new version of the Jomres language file has definitions that your 'old' version does not, which is why it's best, when upgrading, to compare your customised language file with the core Jomres one and copy the new definitions from the core Jomres file to your customised file before replacing the core with the customised files.

A word of caution

You need to be careful when editing language files. A common problem is where French language users (who commonly use the ' (single quote) accidently introduce errors such as the following (My French is terrible, so translation examples will be in English).


jr_define('_JOMRES_COM_MR_SHOWPROFILES','Show p'rofiles');


The above string will cause a fatal error within PHP because the ' after the "p" has cut short the string to "Show p" and PHP cannot parse the "rofiles" afterwards in a meaningful way.

If you find yourself creating this problem, there are two ways to rewrite the line to make it work correctly. You could either wrap the entire string in " (double quotes) or escape the single quote using the \ symbol. Following are both working examples.


jr_define('_JOMRES_COM_MR_SHOWPROFILES',"Show p'rofiles");


jr_define('_JOMRES_COM_MR_SHOWPROFILES','Show p\'rofiles');


Contributing your translations to the Jomres community

We don't have the resources to ensure that all of the language files are translated for each and every version of Jomres that's released, which is why some files have been translated more than others. The non-English language files have been contributed by various members of the Jomres community over the years, and we rely on existing members contributing their versions of the language files back to the project.

If you'd like to contribute a translated file back to the project, that's great. It means that your translation will appear in the next version of Jomres (meaning there's less hassle for you when you upgrade) and other users will benefit from your work. The only thing we ask is that you sign the copyright of the translation over to Woollyinwales IT so that we can ensure that we can continue using the translation in the future.

List of articles in category Language files
Title
You have strange text on your page after upgrading

Back to Jomres.net

Collapse All | Expand All | Toggle All
  • Intro
    • About Jomres
    • Conventions and Assumptions
    • Glossary
    • Content Management System integration
    • Jomres Platform
  • Video Tutorials
    • All Video Tutorials
  • Installation and Upgrading
    • Requirements
    • Jomres Quickstart
    • Where can I download the Quickstart from?
    • Installation into Joomla - Install from Web
    • Installation into Wordpress - Install from Web
    • Uninstallation
    • Installing/Updating to the Nightly branch
    • Joomla Quickstart Installation
    • Wordpress Quickstart Installation
    • Updating
      • Updating on Joomla
      • Updating on Wordpress
  • Site Manager's Guide
    • Introduction
    • Searching in Jomres
    • Live Scrolling (the Property List page)
    • Multi-language sites
    • Agents
    • Viewing error logs
    • Beds24 V2 plugin (migration from Beds24v1)
    • Channel Management (Beds24)
    • Language configuration
    • Jomres and the GDPR
    • User Profiles
    • Search Widgets
    • Property Approvals
    • Getting Started
      • Relationships
      • First Steps
      • Monetising your installation
      • Enabling front end access to Jomres
      • Users in Jomres
      • Google Maps API Key
    • Core Plugins
      • Joomla Menu Maker
      • Addthis Sharing
      • Advanced/Micromanage Tariff Editing Modes
      • Ajax Search
      • Ajax Search Composite
      • Asamodule Popular
      • Asamodule Random
      • Asamodule Recently Viewed
      • Auction House
      • Black Bookings
      • Book Guest In Out
      • Booking Enquiries
      • Bypass Confirmation
      • Cleaning Schedule
      • Clone Property
      • Clone Tariffs
      • Comments tabs disqus
      • Commission
      • Common Template Variables
      • Contact In Sidebar
      • Contact Page in Tabs
      • Core Gateway Cheque
      • Core Gateway Paypal
      • Coupons
      • CSV Export
      • Custom Fields
      • Custom Global Strings
      • Custom Property Fields
      • Data Wipe
      • Default Property Settings
      • Embed Booking Form
      • Exchange Rate Conversion Selector
      • Extended Maps
      • Extended Sorting
      • External Notification
      • Featured Listings
      • Featured Listings asaModule 1
      • Featured Listings asaModule 2
      • Featured Listings Slider 1
      • Featured Listings Slider 2
      • flipwall
      • Frontend in Backend
      • Funky Search Country
      • Funky Search Features
      • Guest Types
      • iDev Affiliates
      • internal_api
      • Jintour
      • jQuery Calendar asaModule
      • Lastminute Config Tab
      • Local Events
      • Location Map
      • Location Map Regions
      • Location Map Sitemap
      • Location Station
      • Lucky Dip
      • Magic Menu
      • Minimum Occupancies
      • My Shortlist
      • Nearest Properties Functions
      • Optional Extras
      • Partners
      • Popular Properties
      • Powered By Gone
      • Property Inna Module
      • Property List With Maps
      • Property Type Search Tabs
      • QR Code Vcard
      • Random Review Inna Module
      • Resource Features
      • Shopping Cart
      • Shopping Cart Module
      • SMS Clickatell
      • Stepz
      • Subscriptions
      • Tag Cloud
      • Useful links
      • Wiseprice config tab
      • Alternative Init
      • Jomres Booking Form In Content
      • Jomres Ajax Search Contentwrapper
      • Jomres asaModule
      • Jomres Asamodule Mambot
      • Module Jomsearch M1/M2/M3/M4
      • Jomres Selfregister
      • Twitter
      • ASAModule Resources
      • Manager cleaner
      • Number of Properties
      • Show Room Calendar
      • Tourist Tax
      • Weather
      • Property Details Standalone Map
      • Example Custom Common Strings
      • Jomres Selfregister Asamodule
      • Last Active
      • Mega Menu Utility Scripts
      • Property List Swipe
      • Featured Listings asaModule 3
      • Property Import Plugin
      • Embed Availability Calendar
      • Jomres Charts
      • Jomres iCal plugin
      • Property List Compact
      • DeepL plugin for Jomres
    • Control Panel
      • Main
        • Control Panel
        • Your Properties
        • Jomres Plugin Manager
        • Control Panel
        • Your Properties
        • Our Partners
        • Plugin Manager
        • Site Configuration
          • Site Configuration - Misc tab
          • Site Configuration - Booking form tab
          • Site Configuration - Your Business Details tab
          • Site Configuration - Commission tab
          • Site Configuration - Currency Conversion/Currency Codes tab
          • Site Configuration - Debugging tab
          • Site Configuration - Email settings tab
          • Site Configuration - File Uploads tab
          • Site Configuration - Google Map Options tab
          • Site Configuration - Input Filtering tab
          • Site Configuration - Integrated Search Feature tab
          • Site Configuration - JS Calendar tab
          • Site Configuration - Navigation Bar Settings tab
          • Site Configuration - reCaptcha tab
          • Site Configuration - Search Options tab
          • Site Configuration - Reviews tab
          • Compatability Mode switch - Site Config - Portal functionality tab
      • Developer Tools
        • Shortcodes - Developer tool
        • Booking data archive
        • Changelog
        • Data Wipe
        • Default Property Settings
        • Custom fields
        • Available Logs
        • Common Strings
        • Custom Property Fields
      • Help
        • Getting Started
        • Manual
        • My Account
        • Tickets
        • About Jomres
      • Income Generation
        • Assign Commission Rates
        • Invoices
        • List Commission Rates
        • Subscription Packages
        • Subscriptions
      • Integration
        • Disqus Settings
        • Edit External Notification
        • External Notification Transactions
        • iDev Affiliates
        • Jomres Clickatell settings
      • Languages
        • Export Definitions
        • Global Strings
        • Label Translations
        • Translate Language File Strings
        • Translate Locales
      • Payment Methods
        • Core Gateway Stripe
        • Gateways
        • Core Gateway Paypal
      • Portal Functionality
        • Ajax search composite settings
        • Extended Maps
        • External form
        • Featured Listings
        • Tour/Activity Management
        • What to do locally
        • What's Happening?
        • Local Events Settings
        • Location Station
        • Reviews
        • Useful links settings
        • Location Station
      • Reports/Statistics
        • CSV Export
        • Statistics
      • Scheduled Tasks
        • Cron job settings and logs
      • Site Structure
        • Clone property
        • Room/Resource types
        • Property/Business features
        • Business Features Categories
        • Property types
        • Resource Features
        • List Countries
        • Edit region
        • Media Centre (Feature and Room type images)
        • Site Structure 101
        • Property Import
      • System Maintenance
        • Access control
        • Rebuild Registry
        • Upgrades
      • Taxes
        • Tax rates
      • User Management
        • Property Managers
        • Partners
  • Property Manager's Guide
    • Getting Started
      • Before we start
      • How prices are calculated
      • Adding users
      • Fine tuning your system
    • Your Toolbar
      • Editing mode
      • Dashboard
        • Dashboard
        • Legacy Dashboard
      • Account Details
        • Log In
        • Log out
        • Edit Account
      • Bookings
        • New Booking
        • Black bookings
        • Simple Booking
        • Edit Booking
        • List Bookings
        • Jomres iCal
        • No Shows
      • Guests
        • New Guest
        • List Guests
      • Invoices
        • List Invoices
      • Misc
        • Cleaning schedule
        • Embed booking form
        • Auction House
      • Properties
        • List Properties
        • New Property
        • Delete Property
        • Preview
      • Reports
        • Statistics
      • Search
        • Add this page to a Joomla menu
        • Wordpress - Search by property name
      • Settings
        • Other Property Information
        • Property Details
        • Email Templates
        • Tariffs and Rooms
        • Guest types
        • Discount Coupons
        • Extras admin
        • Media Centre
        • Room/Resource features
        • Tour/Activity Management
        • Rooms
        • Clone Tariffs
        • Minimum Occupancies
        • Child Policies
        • Occupancy Levels
        • Tariffs
          • Normal Tariff Editing mode
          • Micromanage Tariff Editing mode
          • Advanced Tariff Editing mode
          • Standard Tariff Editing mode
        • Property Configuration
          • Booking Form
          • Bookings
          • Your Business Details
          • Gateways
          • Property Details page settings
          • Supplements
          • SMS
          • Tariff Configuration Mode
          • Tariffs and Currency
          • Micromanage
          • Wiseprice (or) Lastminute
  • Developer's Guide
    • Hints and Tips
    • Bookings not made when paid through Paypal
    • Shortcodes
    • What is the Jomres Syndication Network?
    • TypeError: jomresJquery.fn.tipsy is undefined jomres.js
    • Introduction
      • Minicomponents
      • Registry
    • Customising Jomres
      • Including script content in another template
      • Editing Code
        • Editing the core Jomres code
        • Changing the order of property details tabs
        • Removing a tab from the property details page
      • Editing labels / languages
        • Plugin language files
        • Editing Mode
        • How to edit a gateway name
        • Language files
          • You have strange text on your page after upgrading
      • Customising templates/layout
        • Editing Templates
        • Template Override Packages
        • Basic Template Overrides
        • Make your own template override package
        • Identifying individual templates
    • Shortcodes
      • Using Shortcodes to list properties with specific features
      • Shortcodes in Joomla Modules
    • Other Discussions
      • The Jomres License
      • Using Jomres as an appointment or slot booking application
      • Javascript Conflicts
      • Remote Access of the calendar
      • The Booking Engine
      • Memory and Performance
      • Pseudocron jobs
      • Alpha Beta and Release Candidate versions
      • Developing Tips and Tricks
      • I want to modify a plugin
      • Media Centre aide memoire
      • Language specific templates
      • Performance - Recommended settings
      • Logging in Jomres
      • FAQ modifications
      • JCH Optimize
      • Jomres Trigger system
      • Hello World Simple
      • Max Input Vars (max_input_vars in php.ini)
      • Beds24/Jomres no longer syncing
      • Jomres framework and Encryption/Decryption
      • PHP Updates and Ioncube encoded files
      • Migrate from Joomla to Wordpress
      • You see a SHA EMPTY message on your site
      • encryption_key.class.php
      • Payment Gateways
        • Gateway Aide Memoire
        • Debugging payment gateways
    • Jomres API
      • Using Postman to access the API
      • Creating Clients
      • Communicating with the Jomres API
      • Creating your own API plugins
      • API method description
      • API Sandbox
      • REST API & Webhook case study
      • Using the REST API in your own software
      • Wordpress : API TEST page says I have to move files
    • Webhooks
      • Webhooks Introduction
      • Webhook Methods
      • Creating Webhooks
      • Webhooks - Anatomy of a webhook plugin
    • Channel Management Framework
      • Creating a new property with the CMF REST API
      • Users, Managers and Channels in the CMF
      • Channel Manager Framework - Alpha & Beta testing
      • The CMF plugins - an overview
      • Using Jomres2jomres to create your own network of properties
      • Can Jomres be used with my Channel Manager or Property Management System?
      • Using the Rentals United thin plugin
  • Non-Jomres content
    • DeepL Machine Translation Tool for Joomla