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
FLUID-6303: Adding a localization preference #949
Merged
Merged
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
40270ac
FLUID-6303: added new l10n panel, adjuster, enactor and panel template
BlueSlug 60ebce3
FLUID-6303: Cherry-picking work from BlueSlug
BlueSlug 8b8ef19
FLUID-6303: removed "default" option from list of locales
BlueSlug a8db3a3
FLUID-6303: fixes to localization aux schema
BlueSlug 13752d3
FLUID-6303: Cherry-picking work from BlueSlug
BlueSlug 87e01cb
FLUID-6303: changed l10n classes from "..locale.." to "..localization.."
BlueSlug 785be1f
FLUID-6303: added tests for localization panel
BlueSlug 0cbd657
FLUID-6303: added preliminary tests for l10n enactor
BlueSlug 5e2d457
FLUID-6303: Added l10n enactor event to be fired on model change
BlueSlug d229f40
FLUID-6303: added checks for l10n change event arguments
BlueSlug a211c54
FLUID-6303: added checks for l10n change event arguments
BlueSlug 6026bc2
FLUID-6303: corrected function call in l10n panel test sequence
BlueSlug eaa6cee
FLUID-6303: Cherry-Picking work from BlueSlug
BlueSlug 458b3b7
FLUID-6303: Cherry-Picking work from BlueSlug
BlueSlug 151e671
FLUID-6303: added l10n panel to localized UIO demo page, custom template
BlueSlug 0ad180a
FLUID-6303: moved the l10n panel to the demo's js file rather than html
BlueSlug 81bfbb2
FLUID-6303: added message bundles for new localization panel
BlueSlug 51e877f
FLUID-6303: Updating localization panel and enactor.
jobara 92c2525
FLUID-6303: Moved example to a sub directory to make room for more.
jobara 66a61cd
FLUID-6303: Removing localizated UIO demo.
jobara 9b63817
FLUID-6303: Updating the farsi translation
jobara c9e7746
FLUID-6303: Localizing templates used in the localization examples.
jobara 1c9cad8
FLUID-6303: updated Farsi translations
jobara eb0863e
FLUID-6303: Addressing code review comments.
jobara 8fdd1f7
FLUID-6303: Fixing up testem integration and updating Infusion depend…
jobara 63e03e8
FLUID-6303: rolling back testem to v2.12.0
jobara 86b4685
FLUID-6303: Corrected some errors with LocalizationPrefsEditor config.
jobara 01a3878
FLUID-6303: Refactoring based on "design crit" feedback.
jobara 8482065
FLUID-6303: added a comment and removed unused configuration.
jobara e62fbd9
FLUID-6303: changing default lang to "" from "default"
jobara File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
examples/framework/preferences/localizationPreference/urlPath/es/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<!DOCTYPE html> | ||
<html lang="es"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | ||
|
||
<link rel="stylesheet" type="text/css" href="../../../../../../src/lib/normalize/css/normalize.css" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../../../src/framework/core/css/fluid.css" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="../../../../../../src/framework/preferences/css/PrefsEditor.css" /> | ||
<link rel="stylesheet" type="text/css" href="../../../../../../src/framework/preferences/css/SeparatedPanelPrefsEditor.css" /> | ||
|
||
<title>Editor de preferencias: Preferencia de localización</title> | ||
<script type="text/javascript" src="../../../../../../src/lib/jquery/core/js/jquery.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/lib/jquery/ui/js/version.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/lib/jquery/ui/js/keycode.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/lib/url-polyfill/js/url-polyfill.js"></script> | ||
|
||
<script type="text/javascript" src="../../../../../../src/framework/core/js/Fluid.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidDocument.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/jquery.keyboard-a11y.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidPromises.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/DataSource.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidRequests.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidDOMUtilities.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidIoC.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/DataBinding.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/RemoteModel.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/ModelTransformation.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/ModelTransformationTransforms.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/FluidView.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/ResourceLoader.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/lib/fastXmlPull/js/fastXmlPull.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/renderer/js/fluidParser.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/core/js/MessageResolver.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/renderer/js/fluidRenderer.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/renderer/js/RendererUtilities.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/enhancement/js/ContextAwareness.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/enhancement/js/ProgressiveEnhancement.js"></script> | ||
|
||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/URLUtilities.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/Store.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/UIEnhancer.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/ArrowScrolling.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/PrefsEditor.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/Panels.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/LocalizationPanel.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/Enactors.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/LocalizationEnactor.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/SeparatedPanelPrefsEditor.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/components/slidingPanel/js/SlidingPanel.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/components/switch/js/Switch.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/PrimaryBuilder.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/Builder.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/AuxBuilder.js"></script> | ||
<script type="text/javascript" src="../../../../../../src/framework/preferences/js/LocalizationSchemas.js"></script> | ||
|
||
<script type="text/javascript" src="../js/localization.js"></script> | ||
</head> | ||
|
||
<body class="fl-focus"> | ||
|
||
<!-- BEGIN markup for Preferences Editor --> | ||
<div class="flc-prefsEditor-separatedPanel fl-prefsEditor-separatedPanel"> | ||
<!-- | ||
This div is for the sliding panel bar that shows and hides the Preference Editor controls in the mobile view. | ||
A separate panel bar for mobile displays is needed to preserver the correct tab order. | ||
--> | ||
<div class="fl-panelBar fl-panelBar-smallScreen"> | ||
<span class="fl-prefsEditor-buttons"> | ||
<button class="flc-slidingPanel-toggleButton fl-prefsEditor-showHide"> mostrar/ocultar</button> | ||
<button class="flc-prefsEditor-reset fl-prefsEditor-reset"><span class="fl-icon-undo"></span> Reiniciar</button> | ||
</span> | ||
</div> | ||
|
||
<!-- This is the div that will contain the Preference Editor component --> | ||
<div class="flc-slidingPanel-panel flc-prefsEditor-iframe"></div> | ||
|
||
<!-- | ||
This div is for the sliding panel bar that shows and hides the Preference Editor controls in the desktop view. | ||
A separate panel bar for desktop displays is needed to preserver the correct tab order. | ||
--> | ||
<div class="fl-panelBar fl-panelBar-wideScreen"> | ||
<span class="fl-prefsEditor-buttons"> | ||
<button class="flc-slidingPanel-toggleButton fl-prefsEditor-showHide"> mostrar/ocultar</button> | ||
<button class="flc-prefsEditor-reset fl-prefsEditor-reset"><span class="fl-icon-undo"></span> Reiniciar</button> | ||
</span> | ||
</div> | ||
</div> | ||
<!-- END markup for Preferences Editor --> | ||
|
||
<h1>Hola Mundo!</h1> | ||
|
||
<script type="text/javascript"> | ||
var prefsEditor = example.prefsEditor(".flc-prefsEditor-separatedPanel", { | ||
terms: { | ||
"templatePrefix": "../../../../../../src/framework/preferences/html", | ||
"messagePrefix": "../../../../../../src/framework/preferences/messages" | ||
}, | ||
template: "../html/prefsEditor.html", | ||
defaultLocale: "es" | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual test shows the localization panel added for this demo doesn't perform a language change on the page when switching to a non-English localization option.