About getting Appointment + to work in 2 languages

Hello,
I have read some threads about how to translate the plugin.

I need it to be default french and english as second choice.(customer user end)

I got to getting the poedit program (free version) and am proceeding to translate the content of the .pot file (after having made a copy of the original) 1,000 plus items, which is quite long to do.

My understanding is this ends up creating a new .pot file to replace original one.

So am I on the right track in translating this file line items and then replacing it via ftp?

But then would it not be french only?

How would I keep both while establish default in french?

Bear in mind this language is for the user end , As admin I am fine with the interaction of the dashboard in english.

Oh and I also added the polylang plugin, thinking this would help.

I think I need a coffee break.. :slight_smile:

Thanks

Rob

  • Tyler Postle

    Hey Rob,

    Hope you're doing well today and thanks for your question!

    Yes, so translating the language and placing the new french .mo file in the /wp-content/languages file will give you french translation for Appointments+, rest of the site will still be in english unless you have already changed that too.

    One of the easiest ways to have multiple languages on 1 site is to use the WPML plugin: http://wpml.org/

    It will allow the user to swap back and forth between the different languages all on one site.

    It will also help making translating easier as well. It comes with several modules, including the string translation module for lines that aren't translating properly; however, our plugins should be all localized and as such, you shouldn't find any lines that aren't translating, if you do let us know and we'll get that sorted.

    As for translating with poedit, we actually have community supported translation files where you can grab your language - it looks like french is already 60% done, so that may save you sometime if you want to finish manually translating it :slight_smile:

    https://premium.wpmudev.org/translate/projects/appointments

    Hope this helps Rob! Let me know if you have any further questions here!

    All the best,
    Tyler

  • Rob

    Good morning and greeting from eastern Canada.

    Yesterday began a new adventure in entrepreneurial webcreation.

    After I installed appointment +, I saw how cool an app it is. The front end user interface needed to be translated though as I mentioned.

    So I stopped the manual translation afer Tyler informed me of what has been worked on already but decided to get on the WPMultiLingual.org plugin approach thinking in the long term this plug in may be worth the money.

    Well, it has been a disappointing experirence ( on the side of WPML.org).

    The plug in just refused access to the config menu.

    The message continuously and still now remains:

    You do not have sufficient permissions to access this page.

    After visitng many previous/older posts on WMPL regarding same issue,

    I started troubleshooting. This is not my expectation when buying smthg brand new I must say.

    At any rate, I did things like:
    Change the permissions keys in wp-config.php file
    deactivated all plugins
    changed theme (all basic thems)

    No change
    Then
    I saw another post suggesting to modify code line
    to add the "true" on the debug code line and
    also add the display-true line right after.

    This is what came out, but I am not sure it relates to any fault on Appointment + .
    Here goes:

    before doing the debug true line:
    getting:
    You do not have sufficient permissions to access this page.

    After introducing the debug line:

    Strict Standards: Redefining already defined constructor for class AppointmentsGcal in /home3/ooj27kx5/public_html/massagepourlasante.com/wp-content/plugins/appointments/includes/class.gcal.php on line 26

    (and still getting same message when attemting to config MPML)
    You do not have sufficient permissions to access this page.

    After changing themes:

    Strict Standards: Redefining already defined constructor for class AppointmentsGcal in /home3/ooj27kx5/public_html/massagepourlasante.com/wp-content/plugins/appointments/includes/class.gcal.php on line 26

    You do not have sufficient permissions to access this page.

    Code line excerpt form line 26 ( if this helps)

    function __construct() {
    global $wpdb, $appointments;

    $this->local_time = current_time('timestamp');
    $this->options = get_option( 'appointments_options' );

    // DB version
    $this->db_version = get_option( 'app_db_version' );
    $this->app_table = $wpdb->prefix . "app_appointments";

    $this->plugin_dir = $appointments->plugin_dir;
    $this->plugin_url = $appointments->plugin_url;

    require_once $this->plugin_dir . '/includes/gcal/Google_Client.php';
    require_once $this->plugin_dir . '/includes/gcal/contrib/Google_CalendarService.php';

    // Try to start a session. If cannot, log it.
    if ( !session_id() && !@session_start() ) {
    $appointments->log( __('Session could not be started. This may indicate a theme issue.', 'appointments' ) );
    }

    // Let A+ main settings saved first
    add_action( 'admin_init', array( &$this, 'save_settings' ), 12 );
    add_action( 'init', array( &$this, 'init' ), 12 );

    // Add a custom column on users page
    add_filter( 'manage_users_custom_column', array( &$this, 'users_custom_column' ), 10, 3 );
    add_filter( 'manage_users_columns', array( &$this, 'users_columns' ) );

    // Prevent exceptions to kill the page
    if ( ( isset( $_GET['gcal_api_test'] ) && 1 == $_GET['gcal_api_test'] )
    || ( isset( $_GET['gcal_import_now'] ) && $_GET['gcal_import_now'] ) )
    set_exception_handler( array( &$this, 'exception_error_handler' ) );

    // Set log file location
    $uploads = wp_upload_dir();
    if ( isset( $uploads["basedir"] ) )
    $this->uploads_dir = $uploads["basedir"] . "/";
    else
    $this->uploads_dir = WP_CONTENT_DIR . "/uploads/";
    }

    /**
    * Add a custom column for GCal mode
    * @since V1.2.7.1
    */
    function users_columns( $columns ) {

    I did submit a support ticket with WPML.

    If you have any opinion, I would appreciate it.
    Rob

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.