[FogBugz #220] tester la date de la derniere traduction pour forcer chargement #282

Open
opened 2023-07-03 23:58:33 +02:00 by fbenoist68 · 4 comments

Assigned To: CLOSED
Project: Mobile Portal
Area: Divers
Category: Fonctionnalité
Priority: A fixer impérativement

Assigned To: CLOSED Project: Mobile Portal Area: Divers Category: Fonctionnalité Priority: A fixer impérativement
Poster
Owner

Event ID: 1014
Date: 2013-11-23T08:55:48Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 1014 Date: 2013-11-23T08:55:48Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 1013
Date: 2013-11-23T08:55:48Z
Person: Frederik Benoist
Description: Resolved (Implemented) and assigned to Frederik Benoist by Frederik Benoist

 

 var check_traduction = function(lng, plast_traduction) {
        var local = window.localStorage.getItem('res_' + lng);
        if (local) {
            local = JSON.parse(local);
            if (moment(local.i18nStamp) < plast_traduction | Object.keys(local.translation).length === 0) {
                localStorage.removeItem('res_dev');
                localStorage.removeItem('res_' + lng);
            }
        }
    };
Event ID: 1013 Date: 2013-11-23T08:55:48Z Person: Frederik Benoist Description: Resolved (Implemented) and assigned to Frederik Benoist by Frederik Benoist <p> &nbsp;</p> <div> &nbsp;var check_traduction = function(lng, plast_traduction) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; var local = window.localStorage.getItem(&#39;res_&#39; + lng);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; if (local) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local = JSON.parse(local);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (moment(local.i18nStamp) &lt; plast_traduction | Object.keys(local.translation).length === 0) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localStorage.removeItem(&#39;res_dev&#39;);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localStorage.removeItem(&#39;res_&#39; + lng);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp; };</div>
Poster
Owner

Event ID: 966
Date: 2013-11-16T08:55:48Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 966 Date: 2013-11-16T08:55:48Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 965
Date: 2013-11-16T08:55:48Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

Event ID: 965 Date: 2013-11-16T08:55:48Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#282
There is no content yet.