Parcourir la source

Json dotpath i18n (#6368)

* Update update.phtml

* Update add.phtml
maTh il y a 1 an
Parent
commit
f0d9134478
2 fichiers modifiés avec 55 ajouts et 55 suppressions
  1. 26 26
      app/views/helpers/feed/update.phtml
  2. 29 29
      app/views/subscription/add.phtml

+ 26 - 26
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>

+ 29 - 29
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>