@@ -115,6 +115,20 @@ class AddAccountPage extends StatefulWidget {
115
115
return _LoginSequenceRoute (page: const AddAccountPage ());
116
116
}
117
117
118
+ /// The hint text to show in the "Zulip server URL" input.
119
+ ///
120
+ /// If this contains an example value, it must be one that has been reserved
121
+ /// so that it cannot point to a real Zulip realm (nor any unknown other site).
122
+ /// The realm name `your-org` under zulipchat.com is reserved for this reason.
123
+ /// See discussion:
124
+ /// https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/flutter.3A.20login.20URL/near/1570347
125
+ // TODO(i18n): In principle this should be translated, because it's trying to
126
+ // convey to the user the English phrase "your org". But doing that is
127
+ // tricky because of the need to have the example name reserved.
128
+ // Realistically that probably means we'll only ever translate this for
129
+ // at most a handful of languages, most likely none.
130
+ static const _serverUrlHint = 'your-org.zulipchat.com' ;
131
+
118
132
@override
119
133
State <AddAccountPage > createState () => _AddAccountPageState ();
120
134
}
@@ -233,7 +247,7 @@ class _AddAccountPageState extends State<AddAccountPage> {
233
247
labelText: zulipLocalizations.loginServerUrlLabel,
234
248
errorText: errorText,
235
249
helperText: kLayoutPinningHelperText,
236
- hintText: 'your-org.zulipchat.com' )),
250
+ hintText: AddAccountPage ._serverUrlHint )),
237
251
const SizedBox (height: 8 ),
238
252
ElevatedButton (
239
253
onPressed: ! _inProgress && errorText == null
0 commit comments