Add a constructor to LicensesDialog

Add a constructor that takes all the resources as ids, which is more convenient for i18n;
Also added zh-CN translation.