Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced single quotes with double quotes in coffee script files #2314

Merged
merged 1 commit into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion jsapp/xlform/src/model.row.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ module.exports = do ->
@_extendAll(rr)
rankConstraintMessageKey = 'kobo--rank-constraint-message'
if !rr.get(rankConstraintMessageKey)
rr.set(rankConstraintMessageKey, _t('Items cannot be selected more than once'))
rr.set(rankConstraintMessageKey, _t("Items cannot be selected more than once"))

_beginEndKey: ->
'rank'
Expand Down
18 changes: 9 additions & 9 deletions jsapp/xlform/src/mv.skipLogicHelpers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ module.exports = do ->
{
id: 1
type: 'existence'
label: _t('Was Answered')
negated_label: _t('Was not Answered')
abbreviated_label: _t('Was Answered')
abbreviated_negated_label: _t('Was not Answered')
label: _t("Was Answered")
negated_label: _t("Was not Answered")
abbreviated_label: _t("Was Answered")
abbreviated_negated_label: _t("Was not Answered")
parser_name: ['ans_notnull','ans_null']
symbol: {
ans_notnull: '!=',
Expand All @@ -586,7 +586,7 @@ module.exports = do ->
id: 2
type: 'equality'
label: ''
negated_label: _t('not')
negated_label: _t("not")
abbreviated_label: '='
abbreviated_negated_label: '!='
parser_name: ['resp_equals', 'resp_notequals', 'multiplechoice_selected', 'multiplechoice_notselected']
Expand All @@ -600,8 +600,8 @@ module.exports = do ->
{
id: 3
type: 'equality'
label: _t('Greater Than')
negated_label: _t('Less Than')
label: _t("Greater Than")
negated_label: _t("Less Than")
abbreviated_label: '>'
abbreviated_negated_label: '<'
parser_name: ['resp_greater', 'resp_less']
Expand All @@ -613,8 +613,8 @@ module.exports = do ->
{
id: 4
type: 'equality'
label: _t('Greater Than or Equal to')
negated_label: _t('Less Than or Equal to')
label: _t("Greater Than or Equal to")
negated_label: _t("Less Than or Equal to")
abbreviated_label: '>='
abbreviated_negated_label: '<='
parser_name: ['resp_greaterequals', 'resp_lessequals']
Expand Down
2 changes: 1 addition & 1 deletion jsapp/xlform/src/view.acceptedFiles.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = do ->
events: {
'input input': 'onChange'
}
placeholder: _t('e.g. ".pdf,.doc,.odt"')
placeholder: _t("e.g. \".pdf,.doc,.odt\"")

initialize: ({@rowView, @acceptedFiles=''}) -> return

Expand Down
2 changes: 1 addition & 1 deletion jsapp/xlform/src/view.acceptedFiles.templates.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = do ->
acceptedFilesInput = (value, placeholder) ->
return """
<div class='card__settings__fields__field'>
<label>#{_t('Accepted files')}</label>
<label>#{_t("Accepted files")}</label>
<span class='settings__input'>
<input class='text' type='text' value='#{value}' placeholder='#{placeholder}'/>
</span>
Expand Down
2 changes: 1 addition & 1 deletion jsapp/xlform/src/view.choices.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = do ->
@t = $("<i class=\"fa fa-trash-o js-remove-option\">")
@pw = $("<div class=\"editable-wrapper js-cancel-select-row\">")
@p = $("<span class=\"js-cancel-select-row\">")
@c = $("<code><label>#{_t('Value:')}</label> <span class=\"js-cancel-select-row\">#{_t('AUTOMATIC')}</span></code>")
@c = $("<code><label>#{_t("Value:")}</label> <span class=\"js-cancel-select-row\">#{_t("AUTOMATIC")}</span></code>")
@d = $('<div>')
if @model
@p.html @model.get("label") || 'Empty'
Expand Down
4 changes: 2 additions & 2 deletions jsapp/xlform/src/view.row.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ module.exports = do ->

deleteGroup: (evt)=>
skipConfirm = $(evt.currentTarget).hasClass('js-force-delete-group')
if skipConfirm or confirm(_t('Are you sure you want to split apart this group?'))
if skipConfirm or confirm(_t("Are you sure you want to split apart this group?"))
@_deleteGroup()
evt.preventDefault()

Expand Down Expand Up @@ -300,7 +300,7 @@ module.exports = do ->

if @model._scoreRows.length < 1
@model._scoreRows.add
label: _t('Enter your question')
label: _t("Enter your question")
name: ''

score_rows = for sr in @model._scoreRows.models
Expand Down
2 changes: 1 addition & 1 deletion jsapp/xlform/src/view.row.templates.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ module.exports = do ->
paramsSettingsField = ->
"""
<div class="card__settings__fields__field">
<label>#{_t('Parameters')}:</label>
<label>#{_t("Parameters")}:</label>
<span class="settings__input">
<div class="params-view"></div>
</span>
Expand Down
10 changes: 5 additions & 5 deletions jsapp/xlform/src/view.rowDetail.SkipLogic.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ module.exports = do ->
tempId = _.uniqueId("skiplogic_expr")
@$el.html("""
<p>
#{_t('This question will only be displayed if the following conditions apply')}
#{_t("This question will only be displayed if the following conditions apply")}
</p>
<div class="skiplogic__criterialist"></div>
<p class="skiplogic__addnew">
<button class="skiplogic__addcriterion">+ #{_t('Add another condition')}</button>
<button class="skiplogic__addcriterion">+ #{_t("Add another condition")}</button>
</p>
<select class="skiplogic__delimselect">
<option value="and">#{_t('Question should match all of these criteria')}</option>
<option value="or">#{_t('Question should match any of these criteria')}</option>
<option value="and">#{_t("Question should match all of these criteria")}</option>
<option value="or">#{_t("Question should match any of these criteria")}</option>
</select>
""")

Expand Down Expand Up @@ -335,7 +335,7 @@ module.exports = do ->
# add placeholder message/option
options.unshift({
value: PLACEHOLDER_VALUE
text: _t('Select question from list')
text: _t("Select question from list")
})

model.set('options', options)
Expand Down
10 changes: 5 additions & 5 deletions jsapp/xlform/src/view.rowDetail.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ module.exports = do ->
textbox: (cid, key, key_label = key, input_class = '') ->
@field """<input type="text" name="#{key}" id="#{cid}" class="#{input_class}" />""", cid, key_label

checkbox: (cid, key, key_label = key, input_label = _t('Yes')) ->
checkbox: (cid, key, key_label = key, input_label = _t("Yes")) ->
input_label = input_label
@field """<input type="checkbox" name="#{key}" id="#{cid}"/> <label for="#{cid}">#{input_label}</label>""", cid, key_label

Expand Down Expand Up @@ -309,16 +309,16 @@ module.exports = do ->
@$el.find('input.hxlTag').select2({
tags:$hxl.dict,
maximumSelectionSize: 1,
placeholder: _t('#tag'),
placeholder: _t("#tag"),
tokenSeparators: ['+',',', ':'],
formatSelectionTooBig: _t('Only one HXL tag allowed per question. ')
formatSelectionTooBig: _t("Only one HXL tag allowed per question. ")
createSearchChoice: @_hxlTagCleanup
})
@$el.find('input.hxlAttrs').select2({
tags:[],
tokenSeparators: ['+',',', ':'],
formatNoMatches: _t('Type attributes for this tag'),
placeholder: _t('Attributes'),
formatNoMatches: _t("Type attributes for this tag"),
placeholder: _t("Attributes"),
createSearchChoice: @_hxlAttrCleanup
allowClear: 1
})
Expand Down
8 changes: 4 additions & 4 deletions jsapp/xlform/src/view.surveyApp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,13 @@ module.exports = do ->
$header = $et.parents('.card__header')
card_hover_text = do ->
if buttonName is 'settings'
_t('[button triggers] Settings')
_t("[button triggers] Settings")
else if buttonName is 'delete'
_t('[button triggers] Delete Question')
_t("[button triggers] Delete Question")
else if buttonName is 'duplicate'
_t('[button triggers] Duplicate Question')
_t("[button triggers] Duplicate Question")
else if buttonName is 'add-to-library'
_t('[button triggers] Add Question to Library')
_t("[button triggers] Add Question to Library")

$header.find('.card__header--shade').eq(0).children('span').eq(0)
.attr('data-card-hover-text', card_hover_text)
Expand Down