小编sha*_*enq的帖子

基于android上的用户区域设置的日期格式

我想根据用户区域设置显示出生日期.在我的应用程序中,我的一个字段是出生日期,目前是格式dd/mm/yyyy.因此,如果用户更改其区域设置,则日期格式也应相应更改.任何指针或代码示例都会帮助我克服这个问题.

android date-format internationalization

50
推荐指数
5
解决办法
5万
查看次数

根据android中的语言环境进行地址格式化

您好,在我的应用程序中,我需要根据用户设置的区域设置显示输入地址.有没有人在Android平台上工作或解决格式或有任何指针.

android street-address

7
推荐指数
1
解决办法
2070
查看次数

在Phonegap(Android)应用程序上使用Closure Library

您有任何人使用谷歌的Closure Library https://developers.google.com/closure/在Android上构建Phonegap应用程序.我已经读过Closure对应用程序的国际化有很好的支持.因此,如果任何人都可以提供他们推荐的材料或样本片段,以了解如何实现它.

javascript android internationalization google-closure-library cordova

7
推荐指数
1
解决办法
1312
查看次数

使用goog.getMsg()方法进行Google Closure本地化

您有没有人尝试使用谷歌闭包goog.getMsg()方法本地化他们的应用程序.问题是我无法获得如何加载包含已翻译字符串的外部文件,并在js文件中使用它们,我们希望根据区域设置更改来更改字符串.我已经提到了Closure:权威指南,但它刚刚提供了语法,但无法解释文件处理.

localization google-closure-library cordova

6
推荐指数
0
解决办法
523
查看次数

使用Typescript发出角度指令

您好我正在尝试使用Typescript类实现以下角度指令,

angular.module('mota.main', []).directive('modalDialog', function() {
 return {
restrict: 'E',
scope: {
  show: '='
},
replace: true, // Replace with the template below
transclude: true, // we want to insert custom content inside the directive
link: function(scope, element, attrs) {
  scope.dialogStyle = {};
  if (attrs.width)
    scope.dialogStyle.width = attrs.width;
  if (attrs.height)
    scope.dialogStyle.height = attrs.height;
  scope.hideModal = function() {
    scope.show = false;
  };
},
templateUrl = 'src/app/selection.ts'
};
});
Run Code Online (Sandbox Code Playgroud)

这是模板:

   <div class='ng-modal' ng-show='show'>
        <div class='ng-modal-overlay' ng-click='hideModal()'></div>
        <div class='ng-modal-dialog' ng-style='dialogStyle'>
           <div class='ng-modal-close' ng-click='hideModal()'>X</div>
           <div …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs typescript angularjs-directive

5
推荐指数
1
解决办法
3602
查看次数