51839 Commits

Author SHA1 Message Date
Stephan Aßmus
cdb2290fe9 HaikuDepot: Logic reversal with marking username field
Fixed flipping the boolean passed to MarkAsInvalid() for the user name field,
which only recently became apparent.
hrev47977
2014-10-07 21:35:09 +02:00
Adrien Destugues
04f23913f0 Add a package for Multitalk. hrev47976 2014-10-07 20:14:18 +02:00
Adrien Destugues
97d07c8af2 Add API for parsing dates. hrev47975 2014-10-07 17:40:18 +02:00
Adrien Destugues
090a0d7686 Add an API to get month names. hrev47974 2014-10-07 16:08:22 +02:00
Adrien Destugues
3051660362 Use BDateTimeFormat for deskbar clock
* don't try to cook a custom format by appending strings, and instead
let BDateTimeFormat decide on the appropriate format to use.
hrev47973
2014-10-07 13:07:44 +02:00
Adrien Destugues
b16923f79f Add tests for BDateTimeFormat with custom formats. 2014-10-07 13:07:06 +02:00
Adrien Destugues
4a3a474224 Reimplement BDateTimeFormat using ICU support
* Avoid hardcoding the format to "date, time"
* Allows using DateTimePatternGenerator to create custom formats from a
set of fields.
2014-10-07 13:06:40 +02:00
Adrien Destugues
7fb9021509 Fix singular for Processor count. hrev47972 2014-10-07 10:12:02 +02:00
Adrien Destugues
53382a8aa7 Start making use of BMessageFormat. hrev47971 2014-10-07 10:05:40 +02:00
Adrien Destugues
0da7796e6c Add BMessageFormat class.
This can be used to format complex messages properly. It moves the
complexity of handling plural forms, gender, and anything else needed
into the localizable string, rather than hardcoding it in the code.

This moves the difficulty of handling these things properly to people
doing translations, rather than relying on developers to do it.

Fixes #10755, but our localization must now be updated to make use of
the feature.
2014-10-07 08:51:23 +02:00
Adrien Destugues
699ddf447c DateFormatTest: fix after ICU upgrade
* Timezone names have changed. Test the medium time format which doesn't
include them, as we aren't forcing a specific one.
* French date format also changed to use 4 digit year name.
2014-10-07 08:49:45 +02:00
Adrien Destugues
c9f5d71c97 Update ICU to 54.1.
* Includes updated CLDR with many bugfixes, including updates to tzdata
for upcoming reform of Russian timezones which reintroduces DST
* Also includes some gcc2 fixes which were missing from our previous ICU
port and were identified by running the ICU test suite.
hrev47970
2014-10-06 21:05:34 +02:00
Adrien Destugues
9ab98a21a5 Fix build.
Obviously libstackandtile must alos be built for the main arch.
hrev47969
2014-10-06 19:07:32 +02:00
Adrien Destugues
fe86832391 Put liblinprog after libstackandtile
Otherwise some symbols go missing...
hrev47968
2014-10-06 17:43:21 +02:00
Adrien Destugues
a166264bf3 test_app_server: use libstackandtile.
We build a static lib for it, so we may as well use it.
hrev47967
2014-10-06 17:32:53 +02:00
Adrien Destugues
7554bc9a19 wctype: out of bound access in POSIX locale.
The POSIX locale has gLocaleRoster = NULL and relies on the non-wide
version of the implementation. However it doesn't check that the
characters are actually in range which leads to out of bound access and
crashes in __isctype.

Fixes #11322.
hrev47966
2014-10-06 16:54:31 +02:00
Stefano Ceccherini
aa1e906441 Update timgmsoundfont package:
broken instruments fixed  by Pete Goodeve,
removed big_synth.sy symlink.
hrev47965
2014-10-06 16:24:49 +02:00
Adrien Destugues
37456be704 Make use of the "invalid control" look flag
* Use a red border for BTextControl when the invalid flag is set.
hrev47964
2014-10-06 09:08:17 +02:00
Adrien Destugues
cad9961409 Don't redefine DEBUG
We use DEBUG as a #define when debug info is turned on. This conflics
with the use in WebAppInterface, so rename that as ENABLE_DEBUG (I can't
think of a better name for now).

Fixes the debug build.
hrev47963
2014-10-06 08:55:34 +02:00
Adrien Destugues
136884d011 Remove references to NumberFormatImpl.
The class and header file are gone, so don't try to use them.
Fixes #11312.
hrev47962
2014-10-06 08:35:50 +02:00
Michael Lotz
33046f3a8c keystore_server: Add missing B_NOT_MINIMIZABLE on requests.
The application access and key request windows were minimizable without
a way to get them back. Fixes #11313.
hrev47961
2014-10-05 23:04:38 +02:00
Stephan Aßmus
6f9eb8d1bb HaikuDepot: Validate input before creating account
Provide error or info alert when fields are invalid, suggest
providing an email, but allow to ignore the warning.
hrev47960
2014-10-04 13:31:58 +02:00
Stephan Aßmus
fa09af9a8f HaikuDepot/RatePackageWindow: Output in error code paths 2014-10-04 12:32:59 +02:00
autonielx
c6e3208e3e Update translations from Pootle hrev47959 2014-10-04 06:19:59 +02:00
Stephan Aßmus
602db4afd3 HaikuDepot: Removed misleading default comment text hrev47958 2014-10-03 12:59:45 +02:00
Stephan Aßmus
5ba7054c6b HaikuDepot: Don't try to send "unspecified" stability
Set to empty string and cause the JSON to have null. Fixes sending/editing
comments without specifying a stability rating.
2014-10-03 12:59:44 +02:00
Humdinger
912983a6af Sentence casing in Networking prefs. hrev47957 2014-10-03 08:52:12 +02:00
Stephan Aßmus
b5b717785e HaikuDepot: Specific error for untracked packages
The web service currently only synchronizes with HaikuPorts. Packages
from 3rd party repositories which were added by the user cannot be rated.

Also, use a warning alert for errors in the UserLoginWindow and
RatePackageWindow.
hrev47956
2014-10-02 22:57:51 +02:00
Stephan Aßmus
f532d965bf HaikuDepot: Escape strings in the JSON builder
Fixes uploading comments which use any char that needs to be escaped.
Such as line-breaks, " or \.
2014-10-02 22:57:49 +02:00
Stefano Ceccherini
f262f1b66e Media Preflet: Use BPathFinder::FindPaths() instead of the C method.
This way we can use BStringList and get rid of the manual deallocation.
hrev47955
2014-10-02 22:28:28 +02:00
Stefano Ceccherini
bcec5d7518 Media Preflet: fix #11308
_ClearParamView() should not remove fMidiView, since it's not dynamically
generated.
hrev47954
2014-10-02 22:05:06 +02:00
Stephan Aßmus
b7b31be400 HaikuDepot: Filter ratings by preferred languages
Show only those user ratings which are in one of the
languages configured in the Locale preflet's preferred
languages list.
hrev47953
2014-10-02 21:42:19 +02:00
Jérôme Duval
c881fc09b0 Update bash and gutenprint packages. hrev47952 2014-10-02 21:16:48 +02:00
Sidhant Sharma [:TigerKid001]
5db8f48cb6 Change Success/Failure colors.
* Part of #10834
* Colors were picked from http://clrs.cc, which was suggested by John Scipione.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev47951
2014-10-02 10:58:00 +02:00
Adrien Destugues
df4a02e0fa Fix initialization of BTimeUnitFormat
* The default constructor must configure it for the default locale
* Fix uptime not showing in AboutSystem
* Add a testcase for this
hrev47950
2014-10-02 10:23:31 +02:00
Adrien Destugues
e3857211d3 Move DateTimeFormat and NumberFormat out of BLocale
* ... and adjust all callers
* Remove NumberFormatImpl: we rely on ICU to provide this and it can be
fully wrapped into the C++ file. The class was a stub anyway.
* "Monetary" format is included in NumberFormat for now. There may be a
more generic solution to handle monetary and BTimeUnitFormat (and other
arbitrary units)
hrev47949
2014-10-02 09:19:54 +02:00
Adrien Destugues
9581e328bd Move geolocation test to the shared kit tests.
* Fix the build.
hrev47948
2014-10-02 08:27:44 +02:00
Stefano Ceccherini
8a65f8e900 Media Preflet: Don't leak paths. hrev47947 2014-10-02 07:51:16 +02:00
Oliver Tappe
d0fe638dbd Look for private key of default geolocation service.
* Let the jamfile set HAVE_DEFAULT_GEOLOCATION_SERVICE_KEY if the
  header that is supposed to contain it is found in src/kits/shared
  (which isn't the case for normal builds).
* In case HAVE_DEFAULT_GEOLOCATION_SERVICE_KEY is set, include the
  corresponding header and activate Mozilla's geolocation service with
  the key defined in that header.
  
This procedure should enable buildbot to create nightly images without
exposing the private service key.
hrev47946
2014-10-02 00:32:48 +02:00
Oliver Tappe
3006031ac2 Move Geolocation to kits/shared and make it private. 2014-10-02 00:32:48 +02:00
Jérôme Duval
d02e38fb13 moves /bin/sh to bash packages.
* bash is a mandatory package.
hrev47945
2014-10-01 23:48:12 +02:00
Jérôme Duval
b2d0f2e7b6 Use bash_bootstrap for the bootstrap build.
* don't build the in-tree bash.
* bash doesn't need to be a mandatory package, it's now a dependency of
the haiku package.
2014-10-01 22:34:45 +02:00
Jérôme Duval
689e777570 Add cmd:bash as a requirement for Haiku packages.
* suggested by Augustin.
hrev47944
2014-10-01 20:09:23 +02:00
Jérôme Duval
8b21b2b910 bash: use outsourced package for non-bootstrap builds.
* the bootstrap build keeps on building the in-tree bash.
hrev47943
2014-10-01 19:08:27 +02:00
Adrien Destugues
9577c31bfe Convert BTimeFormat tests to cppunit. hrev47942 2014-10-01 18:23:54 +02:00
Adrien Destugues
03b2550ef1 Move time formatting to BTimeformat.
* Harmonize API for all B*Format to take an output BString by reference
as the first parameter,
* Move the FormatTime methods from BLocale to BTimeFormat
* Adjust all callers for BTimeFormat, BTimeUnitFormat and
BDurationFormat.
2014-10-01 18:13:35 +02:00
Adrien Destugues
0a925409bc Adjust all BDateFormat callers again. hrev47941 2014-10-01 16:35:34 +02:00
Adrien Destugues
cedd1e158b Add tests for BDurationFormat and BTimeUnitFormat. hrev47940 2014-10-01 16:29:13 +02:00
Adrien Destugues
44f11d0982 Make BDateFormat inherit from BFormat again
* Move relevant parts up into BFormat so other format classes can use
those
* Adjust BDurationFormat and BTimeUnitFormat for the changes
* Remove the "default" date format, it is better to keep only a default
locale and let applications create B*Formats from it as needed.
* Creating a B*Format without arguments to the constructor now
configures it for the default locale, which allows for easy use in
standard cases (formatting something with the current language and
format)
* Creating a B*Format is potentially an expansive operation, it is
advised to keep the instance around and reuse it whenever possible.
However it must be "refreshed" when the locale changes, for apps which
supports that, since it keeps a copy of the language and formatting
convention, rather than a pointer to the locale as it did before.
2014-10-01 16:29:12 +02:00
Adrien Destugues
13d147b12b Introduce "invalid" text controls.
* MarkAsInvalid is used to enable or disable the mark
* The B_INVALID BControlLook flag is used
* invalid BTextControls are drawn with a red border.
* You ar encouraged to let the user know more precisely what's wrong, by
showing an helpful error message next to the control or in a tooltip.
hrev47939
2014-10-01 12:12:16 +02:00