aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-04-21 00:46:32 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-21 00:46:32 +0200
commitf0d9134478dded297ca7ff16725aa109336ca9b6 (patch)
tree9a8eb70cb85de7dc78b36678049b119c48b0c584
parenta51fb891b582ed696c24ae9bea82290a315fa76e (diff)
Json dotpath i18n (#6368)
* Update update.phtml * Update add.phtml
-rw-r--r--app/views/helpers/feed/update.phtml52
-rw-r--r--app/views/subscription/add.phtml58
2 files changed, 55 insertions, 55 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index 9b5a27a3f..5c88466a0 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -518,79 +518,79 @@
<?php
$jsonSettings = Minz_Helper::htmlspecialchars_utf8($this->feed->attributeArray('json_dotpath') ?? []);
?>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.help') ?></p>
<div class="form-group">
- <label class="group-name" for="jsonItem"><small><?= _t('sub.feed.kind.json_dotpath.json') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item') ?></label>
+ <label class="group-name" for="jsonItem"><small><?= _t('sub.feed.kind.json_dotnotation.json') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItem" id="jsonItem" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['item'] ?? '' ?>"><?= $jsonSettings['item'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemTitle"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_title') ?></label>
+ <label class="group-name" for="jsonItemTitle"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_title') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemTitle" id="jsonItemTitle" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemTitle'] ?? '' ?>"><?= $jsonSettings['itemTitle'] ?? '' ?></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemContent"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_content') ?></label>
+ <label class="group-name" for="jsonItemContent"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_content') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemContent" id="jsonItemContent" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemContent'] ?? '' ?>"><?= $jsonSettings['itemContent'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_content.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_content.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemUri"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_uri') ?></label>
+ <label class="group-name" for="jsonItemUri"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_uri') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemUri" id="jsonItemUri" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemUri'] ?? '' ?>"><?= $jsonSettings['itemUri'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_uri.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_uri.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemThumbnail"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_thumbnail') ?></label>
+ <label class="group-name" for="jsonItemThumbnail"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_thumbnail') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemThumbnail" id="jsonItemThumbnail" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemThumbnail'] ?? '' ?>"><?= $jsonSettings['itemThumbnail'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_thumbnail.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_thumbnail.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemAuthor"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_author') ?></label>
+ <label class="group-name" for="jsonItemAuthor"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_author') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemAuthor" id="jsonItemAuthor" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemAuthor'] ?? '' ?>"><?= $jsonSettings['itemAuthor'] ?? '' ?></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemTimestamp"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_timestamp') ?></label>
+ <label class="group-name" for="jsonItemTimestamp"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_timestamp') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemTimestamp" id="jsonItemTimestamp" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemTimestamp'] ?? '' ?>"><?= $jsonSettings['itemTimestamp'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_timestamp.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_timestamp.help') ?></p>
</div>
</div>
<div class="form-group">
<label class="group-name" for="jsonItemTimeFormat">
- <?= _t('sub.feed.kind.json_dotpath.item_timeFormat') ?></label>
+ <?= _t('sub.feed.kind.json_dotnotation.item_timeFormat') ?></label>
<div class="group-controls">
<textarea class="w100" name="jsonItemTimeFormat" id="jsonItemTimeFormat" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemTimeFormat'] ?? '' ?>"><?= $jsonSettings['itemTimeFormat'] ?? '' ?></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_timeFormat.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_timeFormat.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemCategories"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_categories') ?></label>
+ <label class="group-name" for="jsonItemCategories"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_categories') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemCategories" id="jsonItemCategories" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemCategories'] ?? '' ?>"><?= $jsonSettings['itemCategories'] ?? '' ?></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemUid"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_uid') ?></label>
+ <label class="group-name" for="jsonItemUid"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_uid') ?></label>
<div class="group-controls">
<textarea class="valid-json w100" name="jsonItemUid" id="jsonItemUid" rows="2" cols="64" spellcheck="false" data-leave-validation="<?= $jsonSettings['itemUid'] ?? '' ?>"><?= $jsonSettings['itemUid'] ?? '' ?></textarea>
</div>
diff --git a/app/views/subscription/add.phtml b/app/views/subscription/add.phtml
index 5a179eb72..17542c9a4 100644
--- a/app/views/subscription/add.phtml
+++ b/app/views/subscription/add.phtml
@@ -167,87 +167,87 @@
</div>
</fieldset>
<fieldset id="json_dotpath">
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.help') ?></p>
<div class="form-group">
- <label class="group-name" for="jsonFeedTitle"><small><?= _t('sub.feed.kind.json_dotpath.json') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.feed_title') ?></label>
+ <label class="group-name" for="jsonFeedTitle"><small><?= _t('sub.feed.kind.json_dotnotation.json') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.feed_title') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonFeedTitle" id="jsonFeedTitle" rows="2" cols="64" spellcheck="false">title</textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.feed_title.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.feed_title.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItem"><small><?= _t('sub.feed.kind.json_dotpath.json') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item') ?></label>
+ <label class="group-name" for="jsonItem"><small><?= _t('sub.feed.kind.json_dotnotation.json') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItem" id="jsonItem" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemTitle"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_title') ?></label>
+ <label class="group-name" for="jsonItemTitle"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_title') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemTitle" id="jsonItemTitle" rows="2" cols="64" spellcheck="false"></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemContent"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_content') ?></label>
+ <label class="group-name" for="jsonItemContent"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_content') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemContent" id="jsonItemContent" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_content.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_content.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemUri"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_uri') ?></label>
+ <label class="group-name" for="jsonItemUri"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_uri') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemUri" id="jsonItemUri" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_uri.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_uri.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemThumbnail"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_thumbnail') ?></label>
+ <label class="group-name" for="jsonItemThumbnail"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_thumbnail') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemThumbnail" id="jsonItemThumbnail" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_thumbnail.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_thumbnail.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemAuthor"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_author') ?></label>
+ <label class="group-name" for="jsonItemAuthor"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_author') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemAuthor" id="jsonItemAuthor" rows="2" cols="64" spellcheck="false"></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemTimestamp"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_timestamp') ?></label>
+ <label class="group-name" for="jsonItemTimestamp"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_timestamp') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemTimestamp" id="jsonItemTimestamp" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_timestamp.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_timestamp.help') ?></p>
</div>
</div>
<div class="form-group">
<label class="group-name" for="jsonItemTimeFormat">
- <?= _t('sub.feed.kind.json_dotpath.item_timeFormat') ?></label>
+ <?= _t('sub.feed.kind.json_dotnotation.item_timeFormat') ?></label>
<div class="group-controls">
<textarea name="jsonItemTimeFormat" id="jsonItemTimeFormat" rows="2" cols="64" spellcheck="false"></textarea>
- <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotpath.item_timeFormat.help') ?></p>
+ <p class="help"><?= _i('help') ?> <?= _t('sub.feed.kind.json_dotnotation.item_timeFormat.help') ?></p>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemCategories"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_categories') ?></label>
+ <label class="group-name" for="jsonItemCategories"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_categories') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemCategories" id="jsonItemCategories" rows="2" cols="64" spellcheck="false"></textarea>
</div>
</div>
<div class="form-group">
- <label class="group-name" for="jsonItemUid"><small><?= _t('sub.feed.kind.json_dotpath.relative') ?></small><br />
- <?= _t('sub.feed.kind.json_dotpath.item_uid') ?></label>
+ <label class="group-name" for="jsonItemUid"><small><?= _t('sub.feed.kind.json_dotnotation.relative') ?></small><br />
+ <?= _t('sub.feed.kind.json_dotnotation.item_uid') ?></label>
<div class="group-controls">
<textarea class="valid-json" name="jsonItemUid" id="jsonItemUid" rows="2" cols="64" spellcheck="false"></textarea>
</div>