div inside <!--:ar--> qtranslate tag

By : TooFast
Source: Stackoverflow.com
Question!

I have a multilingual website (English, Arabic, and French).

I have the following code:

<?php _e('<!--:ar-->للحصول على إجابة سريعة، نرحب بمكالماتكم / و
 رسائلكم عبر البريد الإلكتروني.<!--:--><!--:en-->For A Quick Answer, We Welcome Your
 Calls / Emails.<!--:--><!--:fr-->Pour Une Réponse Rapide, Nous Attendons Vos Appels
 / E-mails.<!--:-->'); ?>

I want to custom style the Arabic part of this echo so I am trying to add a div inside the Arabic part as follows:

<?php _e('<div class="note"><!--:ar-->للحصول على إجابة سريعة، نرحب
        بمكالماتكم / و رسائلكم عبر البريد الإلكتروني 
        .<div><!--:--><!--:en-->For A Quick Answer, We Welcome Your Calls / Emails.
        <!--:--><!--:fr-->Pour Une Réponse Rapide, Nous Attendons Vos Appels /
        E-mails.<!--:-->'); ?>

However, it is affecting the English and french parts too even though i am closing the div before that the english section starts.

please help

By : TooFast


Answers

I fixed it by using inline css instead of naming a class for the div. So the following code worked fine for me:

<div class="note"><?php _e('<!--:ar--><div style="direction:rtl;">للحصول على إجابة سريعة، نرحب بمكالماتكم / و رسائلكم عبر البريد الإلكتروني.</div><!--:--><!--:en-->For A Quick Answer, We Welcome Your Calls / Emails.<!--:--><!--:fr-->Pour Une Réponse Rapide, Nous Attendons Vos Appels / E-mails.<!--:-->'); ?></div>

the weird thing is that if I use class for the div and then edit the class in an external css then it will affect all languages.

By : TooFast


You have to get the collection object first as mentioned below

  var collection = db.collection("simple_document_insert_collection_no_safe");

// Insert a single document collection.insert({hello:'world_no_safe'});

Please refer the below link for more details.

mongod db collection using nodejs



I think you could rewrite this as a single query on the status table, using ORs to test each scenario, like so:

SELECT ss.int_tran_id
FROM   status SS
WHERE  ss.stage in ('ACHPayment_Confirmed', 'HIFV4', 'HIFV5_FTRINF', 'Payment_HIFV5_FTRINF')
OR     (ss.stage = 'PREVDAY'
        AND (EXISTS (SELECT NULL
                     FROM   references rf
                     WHERE  ss.int_tran_id = rf.int_tran_id
                     AND    rf.mid_ref IS NOT NULL)
             OR EXISTS (SELECT NULL
                        FROM   app_data ad
                               INNER JOIN ach aa
                                 ON (ad.app_data_id = aa.ach_id)
                        WHERE  ss.int_tran_id = ad.int_tran_id
                        AND    aa.par_number IS NOT NULL)));
By : Boneist


This video can help you solving your question :)
By: admin