-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (39 loc) · 1.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!doctype html>
<html lang="en" ng-app="xmlYmlConvertApp">
<head>
<meta charset="utf-8">
<title>Convert XML (xliff) Symfony2 translations files to YAML</title>
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/artichaud/artichaud.css">
<link rel="stylesheet" href="css/artichaud/artichaud.form.css">
<script src="js/jquery.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/js-yaml.min.js"></script>
<script src="js/controllers.js"></script>
</head>
<body ng-controller="TextToConverCtrl">
<div class="inner">
<h1>Convert XML (xlf) Symfony2 translations files to YAML</h1>
<div>
<span>Which type of Yaml representation do you want to use ?</span>
<label>Multiple Level
<input type="radio" ng-model="method" value="multiple_level" ng-change="convert()" checked="checked" />
</label>
<label>Flatten
<input type="radio" ng-model="method" value="flatten" ng-change="convert()" />
</label>
</div>
<label for="toConvert">Paste XML content to convert :</label>
<textarea id="toConvert" name="toConvert" ng-model="toConvert" ng-change="convert()"></textarea>
<button type="reset" ng-click="reset()">Reset</button>
<div ng-show="use_flatten" class="warning ng-hide">Some source keys don't allow to use multiple level. Automatically switch to flatten display.</div>
<label for="converted">YAML Result :</label>
<textarea id="converted" name="converted" ng-model="converted" readonly>
</textarea>
<footer>
<p>Realised by <a href="http://twitter.com/GoZOo">GoZ</a> with AngularJS, <a href="https://github.com/nodeca/js-yaml">JS-YAML</a> and <a href="https://github.com/thomaslebeau/artichaut">Artichaud</a></p>
<p><a href="https://github.com/GoZOo/Symfony2-XML-translations-to-YAML/">Convert XML (xliff) Symfony2 translations files to YAML on Github</a></p>
</footer>
</div>
</body>
</html>